From c73b9ff06e748950a836ee02a516bc6d5abf27bf Mon Sep 17 00:00:00 2001 From: Hasin Hayder Date: Sun, 29 May 2022 19:50:45 +0600 Subject: [PATCH] Readme Updated --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e095a7..1d91ef1 100644 --- a/README.md +++ b/README.md @@ -86,10 +86,11 @@ touch database/hydra.sqlite Or simply create a new file as **hydra.sqlite** inside your **database** folder. + 2. Run migration ```shell -php artisan migrate +php artisan migrate:fresh ``` Now your database has essential tables for user and roles management. @@ -102,6 +103,12 @@ Run `db:seed`, and you have your first admin user, some essential roles in the r php artisan db:seed ``` +or you can simply run migrations and seeders together by running the following command + +```shell +php artisan migrate:fresh --seed +``` + Please note that the default admin user is **admin@hydra.project** and the default password is **hydra**. You should create a new admin user before deploying to production and delete this default admin user. You can do that using the available Hydra user management API or any DB management tool. ## List of Default Routes