PHP code example of network-rail-business-systems / laravel-date-timezone

1. Go to this page and download the library: Download network-rail-business-systems/laravel-date-timezone 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/ */

    

network-rail-business-systems / laravel-date-timezone example snippets


return [
    'output-timezone' => env('OUTPUT_TIMEZONE', config('app.timezone'))
];

protected $casts = [
    'created_at' => NetworkRailBusinessSystems\LaravelDateTimezone\Casts\DateTimezone::class;
]
bash
php artisan vendor:publish --tag="date-timezone-config"