PHP code example of devig / voyager-projects

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

    

devig / voyager-projects example snippets


return [

    /*
    |--------------------------------------------------------------------------
    | Voyager Prefix
    |--------------------------------------------------------------------------
    |
    | The global voyager prefix (eg. `admin`). Make sure that it is the same
    | slug, as in voyager.user.redirect setting below.
    |
    */
    
    'prefix' => 'admin',

    ...
bash
php artisan voyager-projects:install
bash
php artisan voyager-projects:install --voyager --demo
shell script
php artisan voyager-projects:install --force