You should make sure you are authenticated before using Auth::user(). if(Auth::check()) { $role...
The second argument should be "s_id" class Artist extends Model { protected $table = '...
EDIT: In the doc of this package, the command is : php artisan make:migration:pivot tags posts
First, you can retreive the authenticated user with "Auth::user()" instead of "User::...
The Laravel portal for problem solving, knowledge sharing and community building.