1.Create a New Laravel Project
2.Use default migration for users table and modify the column id from auto incrementing to uuid and set it as primary key
3.Create Traits with name HasUuid and apply it to Users so when a user entry is generated uuid should be generated and added automatically
4.Create a command to create user account the values can be randomised and it should generate an output when the command php artisan register:user is run
5.Create an API route that would return data as below {"status":true,"user":[]}
a7hul / sample-laravel Goto Github PK
View Code? Open in Web Editor NEWJust a sample Laravel project