PHP code example of mission4 / cinnamon-role

1. Go to this page and download the library: Download mission4/cinnamon-role library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mission4 / cinnamon-role example snippets

 php
public function boot()
{
    $this->registerPolicies();
    // Register CinnamonRole Permissions Policies
    CinnamonRole::registerPermissions();
    // Don't forget to import the class Mission4\CinnamonRole\CinnamonRole
}