PHP code example of porro / laravel-connector

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

    

porro / laravel-connector example snippets


use Illuminate\Support\Facades\Gate;

Gate::define('viewPorro', fn (User $user) => in_array($user->email, ['[email protected]']));
bash
php artisan porro:connect <site key>

* * * * * cd /path/to/site && php artisan schedule:run > /dev/null 2>&1