PHP code example of nuewire / support
1. Go to this page and download the library: Download nuewire/support 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/ */
nuewire / support example snippets
use Illuminate\Database\Eloquent\Model;
use Nuewire\Support\Concerns\HasRandomIntegerId;
class Customer extends Model
{
use HasRandomIntegerId;
}
$table->unsignedBigInteger('id')->primary();
protected function nuewireRandomIntegerIdMinimum(): int
{
return 200000000;
}
bash
php artisan vendor:publish --tag=nuewire-support-config