PHP code example of monurakkaya / laravel-unique-code-generator
1. Go to this page and download the library: Download monurakkaya/laravel-unique-code-generator 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/ */
monurakkaya / laravel-unique-code-generator example snippets
Schema::table('table', function (Blueprint $table) {
$table->dropUniqueCode();
});
$foo = Foo::create(['title' => 'Foo']);
#attributes: array:10 [▼
"id" => 1
"code" => "OF0EIL8B"
"title" => "Foo"
"created_at" => "2022-01-24 13:11:03"
"updated_at" => "2022-01-24 13:11:03"
]