PHP code example of tobiasdierich / gauge

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

    

tobiasdierich / gauge example snippets


$schedule->command('gauge:prune')->daily();

/**
     * Register the Gauge gate.
     *
     * This gate determines who can access Gauge in non-local environments.
     *
     * @return void
     */
    protected function gate()
    {
        Gate::define('viewGauge', function ($user) {
            return in_array($user->email, [
                '[email protected]'
            ]);
        });
    }
bash
php artisan gauge:install
php artisan migrate