PHP code example of marick / classless-migrations-for-laravel
1. Go to this page and download the library: Download marick/classless-migrations-for-laravel 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/ */
marick / classless-migrations-for-laravel example snippets
declare(strict_types=1);
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Schema::create('posts', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->string('slug');
$table->text('body');
$table->boolean('published')->default(false);
$table->timestamps();
$table->softDeletes();
});
shell
php artisan classless-migrations:make-stub