mschwarzmueller / laravel-playground

Laravel Playground (YouTube Tutorial Series) Repository
MIT License
57 stars 40 forks source link

"Call to a member function roles() on null" #3

Open Ossuary opened 7 years ago

Ossuary commented 7 years ago

I'm getting this error when I click the "Assign Roles" button.

I followed the tutorial without errors so far but now I get this "Call to a member function roles() on null".

I've seen others with the same problem on youtube.

Any ideas?

Hodel1 commented 6 years ago

Make sure you got the Models right configurated.