PHP code example of efureev / laravel-support-db
1. Go to this page and download the library: Download efureev/laravel-support-db 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/ */
efureev / laravel-support-db example snippets
Schema::create('users', static function (Blueprint $table) {
$table->primaryUUID();
$table->string('email');
$table->softDeletes();
// one live user per address; soft-deleted rows do not collide
$table->uniquePartial('email')->whereNull('deleted_at');
});
use Illuminate\Support\Facades\Schema;
use Php\Support\Laravel\Database\Schema\Postgres\Blueprint;
Schema::create('table', static function (Blueprint $table) { /* … */ });