Datatables is a javascript plugin that allows for data to be presented in a flexible table with options for sorting and paginating the table. Once you get datatables working it opens up a range of functionality in terms of presenting tabular information. Although you can pass datatables a range of formats it works nicely with [...]
Category: Home - All Categories
This category contains pages for each of the category lists
Roles and Permissions - Step 3 - Assigning Multiple Permissions to a Role
We now need to repeat the process we went through in the last post for the permission table. Let's start with scaffolding the permissions table php artisan infyom:scaffold permissions --fromTable --tableName=permissions Next remove the gaurd_name from \resources\views\permissions\show_fields.blade.php and from \resources\views\permissions\fields.blade.php Now you can go ahead and create new permissions. Permissions could include such functions as [...]
Roles and Permissions - Step 4 - Integrating the assignRoles and assignPermissions into the UI
Having created the functionality and created routes for the functionality it's a relatively straightforward process to integrate this into the existing UI. The current roles screen which was generated by the scaffolder has three icons on the right side of the line for each role. One to view the role, one to edit the role [...]
Roles and Permissions - Step 5 - Enforcing the Permissions
Having set up the roles and permissions all that remains is to enforce the permissions. There are a number of ways of doing this, it can be done in the constructor method of the controller for example. The more popular and straightforward way is to add permissions to routes in web.php. The term middleware is [...]
Roles and Permissions - Step 6 - Using Roles to Control what the User Sees on Login
Once you get your permissions set up and working you can use the Laravel @can directive to check whether a user, once logged in, has permission to access a certain page or area of the site. If they don't have permission they can be given an error and re-directed. In addition to this Spatie adds [...]
System Deployment
[...]
Shopping Cart Example
[...]
Security
[...]
Integrating Components
[...]
Working with Images
[...]