nguyenvuvn / UUID-Admin-Demo

Small demo project showing how to use UUIDs in adminpanel - partly generated by http://quickadminpanel.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Small demo project showing how to use UUIDs in adminpanel - partly generated by http://quickadminpanel.com


Languages

Language:HTML 87.5%Language:PHP 12.5%Language:Vue 0.0%