PHP code example of adamthehutt / laravel-unique-bigint-ids

1. Go to this page and download the library: Download adamthehutt/laravel-unique-bigint-ids 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/ */

    

adamthehutt / laravel-unique-bigint-ids example snippets


use AdamTheHutt\LaravelUniqueBigintIds\Contracts\IdGenerator;
use AdamTheHutt\LaravelUniqueBigintIds\GeneratesIdsTrait;

class MyModel extends Model implements IdGenerator
{
    use GeneratesIdsTrait;

$table->bigInteger("id")->unsigned()->primary();
$table->bigInteger("foreign_id")->unsigned();
 bash
php artisan vendor:publish