0

As above the title, I followed the tutorial to create ACL modal in laravel 5.2 , the bug hit as the attached when I was seeding a class for PermissionTableSeeder.

Well, I hope there are people who can help me on this issue.

This is the bug:

BUG

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Jeffrey Cheong
  • 348
  • 3
  • 13

1 Answers1

0

that error is because of Permission model is not found correctly in your PermissionTableSeeder use permission model with full namespace

add the below use statement at the top of your seeder.

use App\Permission

Sagar Rabadiya
  • 4,126
  • 1
  • 21
  • 27