PHP code example of lpfuri / laravel-demo-mode

1. Go to this page and download the library: Download lpfuri/laravel-demo-mode 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/ */

    

lpfuri / laravel-demo-mode example snippets


DemoMode::isDemoModeOn();

DemoMode::user();
buildconfig
php artisan demo-mode:backup
buildconfig
php artisan demo-mode:on
buildconfig
php artisan demo-mode:off
buildconfig
php artisan demo-mode:restore