PHP code example of kdaws-com / laravel-uuid

1. Go to this page and download the library: Download kdaws-com/laravel-uuid 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/ */

    

kdaws-com / laravel-uuid example snippets

injectablephp
return new class extends Migration
{
    public function up()
    {
        Schema::create('my_models', function (Blueprint $table) {
            $table->string('id', 36)->primary();
            
            // OR
            
            $table->string('myKeyNameWillBeAutoDiscovered', 36)->primary();
        }
    }
}