Skip to content
Small demo project showing how to use UUIDs in adminpanel - partly generated by http://quickadminpanel.com
Branch: master
Clone or download
Latest commit 4d38315 Nov 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Initial commit Jan 23, 2018
bootstrap Initial commit Jan 23, 2018
config Initial commit Jan 23, 2018
database Initial commit Jan 23, 2018
public Initial commit Jan 23, 2018
resources Initial commit Jan 23, 2018
routes Initial commit Jan 23, 2018
storage Initial commit Jan 23, 2018
tests Initial commit Jan 23, 2018
.env.example
.gitattributes Initial commit Jan 23, 2018
.gitignore Initial commit Jan 23, 2018
artisan Initial commit Jan 23, 2018
composer.json Initial commit Jan 23, 2018
composer.lock Initial commit Jan 23, 2018
package.json Initial commit Jan 23, 2018
phpunit.xml
readme.md Update readme.md Nov 21, 2018
server.php Initial commit Jan 23, 2018
webpack.mix.js Initial commit Jan 23, 2018

readme.md

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

You can’t perform that action at this time.