# Installation

Argon Pro Theme For Laravel Framework 8.x and Up

Current version: Argon Dashboard Pro Laravel v1.2.0. More info at https://www.creative-tim.com/product/argon-dashboard-pro-laravel

## Prerequisites

If you don't already have an Apache local environment with PHP and MySQL, use one of the following links:

1. Windows: https://updivision.com/blog/post/beginner-s-guide-to-setting-up-your-local-development-environment-on-windows
2. Linux: https://howtoubuntu.org/how-to-install-lamp-on-ubuntu
3. Mac: https://wpshout.com/quick-guides/how-to-install-mamp-on-your-mac/

You will also need to install Composer: https://getcomposer.org/doc/00-intro.md

## Installation

1. Unzip the downloaded archive
2. Copy and paste the unzipped folder in your projects folder. Rename the folder to your project's name
3. In your terminal run `composer install`
4. Copy `.env.example` to `.env` and updated the configurations (mainly the database configuration)
5. In your terminal run `php artisan key:generate`
6. Run `php artisan migrate --seed` to create the database tables and seed the roles and users tables
7. Run `php artisan storage:link` to create the storage symlink (if you are using Vagrant with Homestead for development remember to ssh in your virtual machine and run the command from there).

## Note

The home page for guest users is the login page. If you want to change this open the `routes/web.php` file and on the line `Route::get('/', 'Auth\LoginController@showLoginForm')->name('welcome');` replace `Auth\LoginController@showLoginForm` with the location of the new home page.

## Usage

To start testing the Pro theme, register as a user or log in using one of the default users:

- admin type - admin@argon.com with the password secret
- creator type - creator@argon.com with the password secret
- member type - member@argon.com with the password secret

Make sure to run the migrations and seeders for the above credentials to be available.

In addition to the features included in the free preset, the Pro theme also has a role management example with an updated user management, as well as tag management, category management and item management examples. All the necessary files (controllers, requests, views) are installed out of the box and all the needed routes are added to `routes/web.php`. Keep in mind that all the features can be viewed once you log in using the credentials provided above or by registering your own user.

Each role has a different privilege level and can perform a certain number of actions according to this level.

A member type user can log in, update his profile and view a list of added items.

A creator type user can log in, update his profile and perform actions on categories, tags and items.

A admin type user can log in, update his profile and perform actions on categories, tags, items, roles and users.

### Dashboard

You can access the dashboard either by using the "Dashboards/Dashboard" link in the left sidebar or by adding /home in the URL.