PHP code example of dainsys / locky

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

javascript
    protected $casts = [
        'inactivated_at' => 'date'
    ];
  
javascript
use App\YourModel;

class MyController extends Controller
{
    public function __construct()
    {
        $this->authorizeResource(YourModel::class, 'model');
    }
}