PHP code example of seanbarton / laravel-periscope
1. Go to this page and download the library: Download seanbarton/laravel-periscope 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/ */
seanbarton / laravel-periscope example snippets
use Laravel\Telescope\Telescope;
Telescope::auth(function ($request) {
return $request->user()?->can('viewTelescope') === true;
});