-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class 'Tracker' not found #44
Comments
I namespace my controllers too and I don't have any problems. Looks like at the time your controller was hit the alias wasn't still registered, you can do it manually in your app.php:
Tracker Service Provider does that for you automatically, unless you tell it to not to, in config.php, it also let you change the Alias name... |
Ah yes, but this is not exist in the documentation i think, |
It does not exists because you should not need to do this, Tracker is supposed to do it automatically for you. But somehow in your application the controller is being hit before Tracker is able to create the Alias... |
Ah sorry ! |
please help me, Database [tracker] not configured. (View: C:\xampp\htdocs\project\ayam_jago\app\views\admin\page\visitor\index.blade.php) |
You need a 'tracker' connection in your app/conf/databases.php file, pointing to whatever database you want Tracker to write to. It can be your main database or a separate one. |
Change 'tracker' to 'mysql' in the config file. |
Or this :) |
Thank you very mach sir |
hello sir,
thanks, |
Good morning. Hello, I have a similar hoeril error, I am using Laravel 5.2 The error message is:
|
I am using Laravel 5.7 the same thing happening to me the error is saying Class tracker does not exist though I've added the alias already in |
I'am using namespace in my controllers , this is my controller :
theme = Theme::uses('admin'); $visitor = Tracker::currentSession(); dd($visitor); } public function getIndex() { $the_title = trans("admin.labels.dashboard"); return $this->theme->scope('index',compact('the_title')) ->render(); } ``` }[controllers/admin/AdminController.php]
The text was updated successfully, but these errors were encountered: