Installation
Laravel is nicely documented to start. Laravel is a new breed of backend build tooling that significantly improves the backend development experience. In this section, we will discuss the Laravel + Blade Template Starter Kit. If you are looking to create any application using laravel and laravel blade templates then you can use this starter kit.
Prerequisite
How do I check my node version?
Run below command in your terminal:
node -v
How do I check my npm version?
Run below command in your terminal:
npm -v
How do I check my php version?
Run below command in your terminal:
php -v
How do I check my mysql version?
Run below command in your terminal:
mysql -V
Make sure output version is LTS version.
TIP
Vite package manager is recommended
Step-1: Getting started
TIP
To get a better understanding of all the files and folders please follow our guide on source files.
- Download Dashcode from CodeCanyon.
- Extract the downloaded zip file.
- Open the extracted folder and copy the
dashcode-laravel
folder. - Paste the
dashcode-laravel
folder in your project root directory. For example root directory for XAMPP ishtdocs
, root directory for Laragon iswww
, root directory for WAMP iswww
, root directory for MAMPhtdocs
. Please find your root directory in case you are using any different software. - Open the terminal and navigate to the project directory.
cd dashcode-laravel
Run the below commands to serially.
- Copy
.env.example
file and rename it to.env
.
shellcp .env.example .env
- Install composer: It will install the packages.
shellcomposer install
- Application key generate: It will generate the application key.
shellphp artisan key:generate
- Migrate the database: It will migrate the tables.
WARNING
First create a database. Open the `.env` file and update the database credentials E.g.
text# .env file DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=dashcode_laravel DB_USERNAME=root DB_PASSWORD=
shellphp artisan migrate
- Seed the database: It will seed the tables.
shellphp artisan db:seed
- Link storage folder.
shellphp artisan storage:link
- Install npm packages
shellnpm install
TIP
For Database backup feature, needed some configuration. See Here
- Copy
Step-2: Run the app
- Once you are done with the setup you are ready to run the application. In order to run the application make sure you have all the necessary environments running. This project requires a web server to run. You can run a development server by running this command below in a terminal inside
dashcode-laravel
folder,
php artisan serve
WARNING
If you are not willing to run this project using php artisan serve
command, then make sure your apache and mysql are running. To do so you can use any of the environments like XAMPP, MAMP, Valet, Laragon etc.
Just paste the dashcode-laravel
folder in your project root directory. For example root directory for XAMPP is htdocs
, root directory for Laragon is www
, root directory for WAMP is www
, root directory for MAMP htdocs
. Please find your root directory in case you are using any different software. After that make sure Apache and MySql are running.
TIP
XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP programming language.
TIP
MAMP is a solution stack composed of free and open-source and proprietary commercial software used together to develop and run dynamic websites on Apple Macintosh computers.
TIP
You can also check Laravel Valet here which is a development environment for macOS minimalists.
- After running this project inside a server, run this command in a new terminal inside
dashcode-laravel
folder,
npm run dev
If you have followed all the above steps, then your
dashcode-laravel
should be running fine.For registering new user, please configure you email credentials first in
.env
file.
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
TIP
For Database backup feature, needed some configuration. See Here
TIP
Social Login Configuration. See Here
TIP
Default Credentials.
TIP
If you have any issues regarding installation please follow our guide on getting support for our product.