Setup Laravel 7

Laravel Mix provides a clean, fluent API for defining basic webpack build steps for your Laravel application. Mix supports several common CSS and JavaScript pre-processors.

Please follow below steps to install and setup locally. You will need to make sure your server meets the following requirements. If you have any questions please reach out to us on our Support Forum:

Server Requirements

Before you install, it's important to check that your server meets the requirements. To run this project you will need:

  • Apache
  • MySQL 5.6+
  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
Installation

Open your terminal at the root directory of the project and run the below command.

composer install

run the following command to compile all assets from resources folder to public folder.

npm run dev

run the following command to generate the key

php artisan key:generate

Configuration
Sensitive Data Make sure you store sensitive and private information in a secure location and not accessible publicly. DO NOT include the config file in your repository.

You have to add your database credentials in the .env to connect database and run migration by follwoing steps.

You have to update database details in the .env file as below

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

Now run the below command to migrate database.

php artisan migrate

Now run the below command to run locally.

php artisan serve

To change the port address, run the following command:

php artisan serve --port=8080

Public Directory

After installing Laravel, you should configure your web server's document / web root to be the public directory. The index.php in this directory serves as the front controller for all HTTP requests entering your application.

Configuration Files

All of the configuration files for the Laravel framework are stored in the config directory. Each option is documented, so feel free to look through the files and get familiar with the options available to you.

Directory Permissions

After installing Laravel, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run.

sudo chmod -R o+rw bootstrap/cache
sudo chmod -R o+rw storage

Pretty URLs

Apache Laravel includes a public/.htaccess file that is used to provide URLs without the index.php front controller in the path. Before serving Laravel with Apache, be sure to enable the mod_rewrite module so the .htaccess file will be honored by the server. If the .htaccess file that ships with Laravel does not work with your Apache installation, try this alternative:

Options +FollowSymLinks -Indexes
RewriteEngine On

RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Nginx If you are using Nginx, the following directive in your site configuration will direct all requests to the index.php front controller:

location / {
try_files $uri $uri/ /index.php?$query_string;
}

Metrica uses jQuery, Bootstrap JS framework(at its core) and some of the third-party plugins. There are may more third party plugin which you can use according to your needs. The css is already containing matching style for these plugins so you will not need to do anything around it.
File Description
jquery.js, bootstrap.bundle.min.js, jquery.slimscroll, etc. These files are used at core of the theme.
app.js This is a main js file. It contains the custom JS code needed for features including layout, sidebar, etc.
pages/*.js These are the files containing pages specific code. They are mainly used for demo purpose.
plugins/**.js All supported and integrated third-party plugins are included in here.

Support


Once again thank you for purchasing the theme. I am always avaialble to help you. If you have any suggestion or feature to make it more better, I am requesting you to contact me on support@themesbrand.com, I'll try my best to add them in future updates.

Best,

- Themesbrand