Core Concepts

Roles and Permissions

Autoload comes with a robust Roles and Permissions system built by Spatie that allows you to control access to your application's features. For any further customizations, you can refer to the Spatie's documentation.

Bundled Roles

Autoload comes with 4 Roles with varying degrees of attached Permissions. They are;

  • Super Admin - Has all permissions and can do anything.
  • Admin - Has all permissions except for the ability to manage roles and permissions.
  • Editor - Has permissions to manage content.
  • Viewer - Has permissions to view content.

Seeding

You may seed any new Roles and Permissions by using Autoload's seed command:

    
1php artisan autoload:seed-permissions

Also, within the Deploy Command, permissions and roles are automatically seeded.

Previous
Users
Code highlighting provided by Torchlight