muya / muya.github.io

muya's blog
https://blog.muya.co.ke
MIT License
3 stars 2 forks source link

Using API Guard with Laravel 5.2 #17

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Using API Guard with Laravel 5.2 – Muya's Blog

[mostly code] musings of a software developer from nairobi 🇰🇪 | learning

https://blog.muya.co.ke/api-guard-laravel-5-2/

muya commented 2 years ago

Comments Previously on Disqus

Originally by: Sergey Lemnev on 2016-02-26 12:38:17 Also, You need add in 'aliases' block in config/app.php file 'ApiGuardAuth' => 'Chrisbjr\ApiGuard\Facades\ApiGuardAuth',

Originally by: Don J on 2016-03-01 04:58:42 After adding that now I'm getting this error:

ErrorException in ApiGuardAuth.php line 14:
Argument 1 passed to Chrisbjr\ApiGuard\ApiGuardAuth::__construct() must be an instance of Chrisbjr\ApiGuard\Contracts\Providers\Auth, null given, called in /Users/ ... ... /html/app/api/vendor/chrisbjr/api-guard/src/Providers/ApiGuardServiceProvider.php on line 49 and defined

Originally by: David D on 2016-07-05 18:05:07 Did you ever solve this Don?

Originally by: Don J on 2016-07-05 18:16:28 yes thanks

Originally by: David D on 2016-07-05 18:20:39 What was your solution?

Originally by: Don J on 2016-07-05 18:22:12 I knew you would ask, 4 months ago I cannot recall, but I do remember it was something stupid on my end.

Originally by: Astrit on 2016-03-01 17:29:00 I am getting this error:

HELP PLEASE

ErrorException in SessionGuard.php line 418:

Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, null given, called in E:\xampp\xampp\htdocs\2016\api\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php on line 477 and defined

Originally by: Astrit on 2016-03-01 17:29:45 And after i add the apiguard auth i get this:

Argument 1 passed to Chrisbjr\ApiGuard\ApiGuardAuth::__construct() must be an instance of Chrisbjr\ApiGuard\Contracts\Providers\Auth, null given, called in E:\xampp\xampp\htdocs\2016\api\vendor\chrisbjr\api-guard\src\Providers\ApiGuardServiceProvider.php on line 49 and defined

Originally by: David D on 2016-07-05 18:04:57 Did you ever solve this?