It is a demo project for demonstrating how UUIDs work, and also what can be generated with QuickAdminPanel.
Adminpanel's user management works, using webpatser/laravel-uuid package and fills in UUIDs in model's boot()
method.
public static function boot()
{
parent::boot();
self::creating(function ($model) {
$model->uuid = (string) Uuid::generate();
});
}
And then uses Route model binding, attaching UUID as parameter in edit/show URLs:
public function getRouteKeyName()
{
return 'uuid';
}
- Clone the repository with git clone
- Copy .env.example file to .env and edit database credentials there
- Run composer install
- Run php artisan key:generate
- Run php artisan migrate --seed (it has some seeded data for your testing)
- That's it: launch the main URL and login with default credentials admin@admin.com - password
Basically, feel free to use and re-use any way you want.
- Check out our adminpanel generator QuickAdminPanel
- Read our Blog with Laravel Tutorials
- Subscribe to our newsletter with 20+ Laravel links every Thursday
- Subscribe to our YouTube channel Laravel Business
- Enroll in our Laravel Online Courses