PHP code example of mystamystinc / model-policy-generator

1. Go to this page and download the library: Download mystamystinc/model-policy-generator 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/ */

    

mystamystinc / model-policy-generator example snippets


 
return [ 
    'permissions' => [
        'view',
        'view_any',
        'create',
        'update',
        'restore',
        'restore_any',
        'replicate',
        'reorder',
        'delete',
        'delete_any',
        'force_delete',
        'force_delete_any',
    ],
    'models_directory' => 'app/Models',
    'policies_directory' => 'app/Policies',
];
bash
php artisan myst:install 

This is the contents of the published config file:

 
 
## Testing