PHP code example of breadthe / laravel-starter-timezone
1. Go to this page and download the library: Download breadthe/laravel-starter-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/ */
breadthe / laravel-starter-timezone example snippets
Schema::table('users', function (Blueprint $table) {
$table->string('timezone')->default('UTC');
});
bash
php artisan migrate
bash
php artisan starter-timezone:install --no-interaction
bash
php artisan starter-timezone:install --migration
php artisan starter-timezone:install --registration --profile