PHP code example of yannoff / lumiere-utils
1. Go to this page and download the library: Download yannoff/lumiere-utils 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/ */
yannoff / lumiere-utils example snippets
BluePrintUtils::addTimestamps(Blueprint $table, int $precision = 0)
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Yannoff\Lumiere\Utils\Database\BluePrintUtils;
class CreateTagsTable extends Migration
{
/**
* @return void
*/
public function up()
{
Schema::create('tags', function (Blueprint $table) {
$table->id();
$table->string('label', 120);
$table->string('slug', 128);
BluePrintUtils::addTimestamps($table);
});
}
}