# Installation Steps

1. Create a database for the project
2. update your database details in .env file
3. update APP_URL in .env file
    
    make sure .env APP_URL has proper value and **.env** has  `ADMIN_URL` key has _APP_URL/secureadmin_
    
    e.g. 
    ```
    APP_URL=http://localhost/laravel/Loop
    ADMIN_URL=http://localhost/laravel/Loop/secureadmin
    ```


4. Run this command-
   composer dump-autoload
   
   php artisan migrate <s>--seed</s>

   all database tables are created and some dummy data is inserted
5. Run this command to make storage folder in your public path
   php artisan storage:link
   ----------------------------------For Api only ------------
6. For api lib only: run these commands
   php artisan passport:install
   php artisan passport:keys

---

7. Now you can login in admin panel by typing secureadmin after your url. and these are the details for your admin

   `username : admin@admin.com`

   `password : `<s>test1234</s> `Ad@123456`

   Note: If you receive a "class not found" error when running migrations, try running the composer dump-autoload command.
