PHP code example of maarheeze / uuid-livewire
1. Go to this page and download the library: Download maarheeze/uuid-livewire 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/ */
maarheeze / uuid-livewire example snippets
use Livewire\Component;
use Maarheeze\Uuid\Uuid;
class ShowArticle extends Component
{
public Uuid $articleId;
}
use Filament\Resources\Resource;
use App\Models\Article; // model with a Uuid primary key
class ArticleResource extends Resource
{
protected static string $model = Article::class;
}