-
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
Facade isn't working #201
Comments
|
Also with the |
Perhaps missing the provider in
|
|
Having the same problem since the update to Laravel 5.4 |
how do you add geoip facades and alias. thank you? |
I'm having the same issue. Any solution please ? |
guys just enable logging and everything will work |
still no solution? @hamzafaouzi which log should be enable? |
@kevingio try changing this to |
@napestershine I believe this bug can be fixed with this change: protected function registerTracker()
{
- $this->app->singleton('tracker', function ($app) {
+ $this->app->singleton(Tracker::class, function ($app) {
$app['tracker.loaded'] = true;
return new Tracker(
$app['tracker.config'],
$app['tracker.repositories'],
$app['request'],
$app['router'],
$app['log'],
$app,
$app['tracker.messages']
);
});
+ $this->app->alias(Tracker::class, 'tracker');
} |
Hi
I tried to use the facade with this code:
Tracker::currentSession()
But it returns this:
Class 'App\Http\Controllers\Tracker' not found
I included it in my app.php config file like this;
'Tracker' => PragmaRX\Tracker\Vendor\Laravel\Facade::class,
Any ideas?
The text was updated successfully, but these errors were encountered: