Setup
Setup Laravel
Introduction
Laravel Vite provides a clean, fluent API for defining basic build steps for your Laravel application. Mix supports several common CSS and JavaScript pre-processors.
Prerequisites
Please follow below steps to install and setup all prerequisites:
-
Composer
Make sure to have the Composer installed & running in your computer.
-
Xampp/Wampp
Make sure to have eighter Xampp or Wampp installed & running in your computer.
-
Nodejs
Make sure to have the Node.js installed & running in your computer. If you already have installed Node on your computer, you can skip this step if your existing node version is greater than 16.
-
Git
Make sure to have the Git installed globally & running on your computer. If you already have installed git on your computer, you can skip this step.
Installation
To setup the admin theme, follow below-mentioned steps:
-
Install Prerequisites
Make sure to have all above prerequisites installed & running on your computer.
After you finished with the above steps, you can run the following commands to run the project locally or build for production use:
Command | Description |
---|---|
npm install
|
This would install all the required dependencies in
the node_modules folder.
|
composer install
|
command to install all of the framework's dependencies. |
Please run the below command to generate the new key.
php artisan key:generate
Please fill your DB credentials in the .env file and make sure you have created database with name "tocly".
DB_CONNECTION=mysql
DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=tockly_laravel DB_USERNAME=root DB_PASSWORD= |
|
npm run build
|
To compile all CSS and will copy all images, Js, Libs into the public directory. Run this command to get minify output for the production server. |
npm run build-rtl
|
to generate RTL css from LTR. |
Please run the following commands to clear all cache from the project.
php artisan optimize:clear
|
|
php artisan migrate
|
This will migrate the database tables. For more details visit https://laravel.com/docs/10.x/migrations |
php artisan serve
|
The development server is accessible at http://localhost:8000. To run on other port just run command : php artisan serve --port=8001 |