PHP code example of weward / porticobouncer

1. Go to this page and download the library: Download weward/porticobouncer 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/ */

    

weward / porticobouncer example snippets


    use Silber\Bouncer\Database\HasRolesAndAbilities;

    use HasRolesAndAbilities;

return [
];

$porticoBouncer = new Weward\PorticoBouncer();
echo $porticoBouncer->echoPhrase('Hello, Weward!');
sh
    php artisan vendor:publish --tag="bouncer.migrations"
sh 
    php artisan migrate
bash
php artisan vendor:publish --tag="porticobouncer-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="porticobouncer-config"
bash
php artisan vendor:publish --tag="porticobouncer-views"