PHP code example of handmadeweb / statamic-laravel-packages

1. Go to this page and download the library: Download handmadeweb/statamic-laravel-packages 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/ */

    

handmadeweb / statamic-laravel-packages example snippets


    /**
     * Register the Telescope gate.
     *
     * This gate determines who can access Telescope in non-local environments.
     *
     * @return void
     */
    protected function gate()
    {
        Gate::define('viewTelescope', function ($user) {
            return $user->can('access laravel telescope');
        });
    }