Reputation: 826
FatalErrorException in UserStoreCommand.php line 8: Interface 'Illuminate\Contracts\Bus\SelfHandling' not found
Here is Code i am using, where its throwing error.
use Illuminate\Contracts\Bus\SelfHandling;
use Cartalyst\Sentinel\Laravel\Facades\Sentinel;
class UserStoreCommand implements SelfHandling {
I have found same issue was with laravel 5.3 here is link
Please me know if there is any way to use it with laravel 5.4.
Upvotes: 1
Views: 1823
Reputation: 514
Actually, SelfHandling is deprecated in laravel 5.4. It's now default so you do not need use Illuminate\Contracts\Bus\SelfHandling;
and make sure to remove this implements SelfHandling
. It should work then.
Upvotes: 2
Reputation: 18557
There are several possibilities to let this happen, solutions can vary
Illuminate\Contracts\Bus\SelfHandling;
extends Command implements SelfHandling
use app/Commands;
Either of them should work,
And once please go through release notes of laravel 5.4.
Give it a try, it should work.
Upvotes: 3