PHP code example of neon / model-uuid

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

    

neon / model-uuid example snippets


  /** Create `awesome_uuids` table.
   * 
   * @return void
   */
  public function up()
  {
    Schema::create('awesome_uuids', function (Blueprint $table) {
      $table->uuid('id')
        ->primary();
    });
  }



namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Neon\Models\Traits\Uuid;

class AwesomeUuid extends Model
{
    use Uuid;
}