Saltar al contenido
← Volver a proyectos

UUID Admin Demo

The Laravel Framework.

#Laravel 5.5 based user management system using UUIDs

It is a demo project for demonstrating how UUIDs work, and also what can be generated with QuickAdminPanel.

Laravel UUIDs

#How it works

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';
}

#Used packages

#How to use

  • 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

#License

Basically, feel free to use and re-use any way you want.


#More from our LaravelDaily Team

Nueva versión disponible.