PHP code example of dainsys / timy

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

    

dainsys / timy example snippets


    >     'providers' => [
    >         Dainsys\Timy\TimyServiceProvider::class,
    >     ]
    > 
`javascript
    Broadcast::channel('Timy.User.{id}', function ($user, $id) {
        return (int) $user->id == (int) $id;
    });
    
    Broadcast::channel('Timy.Admin', function ($user) {
        return \Illuminate\Support\Facades\Gate::allows(config('timy.roles.admin'));
    });
    
`javascript
            "laravel-echo": "^1.8.0",
            "pusher-js": "^6.0.3",