PHP code example of flobbos / laravel-datable

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

    

flobbos / laravel-datable example snippets



    namespace App;

    use Illuminate\Database\Eloquent\Model;
    use Flobbos\Datable;

    class Event extends Model {

        use Datable\Datable;

        protected $dates = [
            'starts_on',
            'ends_on'
        ];


    }

    $your_model->starts_on->format('d. F Y');