PHP code example of xzxzyzyz / laravel-uuid-model
1. Go to this page and download the library: Download xzxzyzyz/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/ */
xzxzyzyz / laravel-uuid-model example snippets
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('example', function(Blueprint $table) {
$table->uuid('id')->primary();
// ...
});
}
use Xzxzyzyz\Laravel\Uuid\Model;
class Example extends Model
{
//...
}