Level 50
this should work
use Laratrust\Models\LaratrustRole;
https://stackoverflow.com/questions/41470897/laravel-and-laratrust-namespace-not-found
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am going to install Laratrust to My laravel project. when I am going to run following command
php artisan db:seed command not working
occurred following error in cmd
Class 'Laratrust\LaratrustRole' not found
My Role Model is this
<?php
namespace App;
use Laratrust\LaratrustRole;
class Role extends LaratrustRole
{
//
}
this should work
use Laratrust\Models\LaratrustRole;
https://stackoverflow.com/questions/41470897/laravel-and-laratrust-namespace-not-found
Please or to participate in this conversation.