User Role and Permission(Laravel)

  1. Add new field in User table:

app/user.php

2. Crete Model and Table:

3. Create Relationship with user table and roles table.

App/User.php

database/migrations/2014_10_12_000000_create_users_table.php

App/Role.php

4. App/Providers/AuthServiceProvider.php

5. Give access by: