PHP code example of dtt / laravel-uuid-model

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

    

dtt / laravel-uuid-model example snippets


/**
 * Run the migrations.
 *
 * @return void
 */
public function up()
{
	Schema::create('example', function(Blueprint $table) {
		$table->uuid('id')->primary();
		// ...
	});
}

use DT\Laravel\Uuid\Model;

class Example extends Model
{
	//...
}