Thanks for visiting my GitHub account!
Laravel is a free and open-source PHP- based web framework for building high-end web applications. It was created by Taylor Otwell and intended for the development of web applications following the model–view–controller architectural pattern and based on Symfony. see-more
- VS Code, Download ->https://code.visualstudio.com/download
- XAMPP ,Download-> https://www.apachefriends.org/download.html
- Composer ,Download (Composer-Setup.exe)-> https://getcomposer.org/download/
- Nodejs ,Download -> https://nodejs.org/en/download
Dashboard | Profile |
Logo-MGT | Chefs-MGT |
Hero-Area | Message |
Product-MGT | Admin-MGT |
Upload-Image | |
HOME |
Step-1: For Set up Project
- Clone this to your local machine using
gh repo clone learnwithfair/laravel-restaurant
- Run the command in the root directory
i) composer install or composer update ii) npm install
Step-2: Connect Database
- In the .env file change the configuration as-
APP_KEY=base64:2qbhz1ExIN5uT3YfW0XBWaVwh7GPdG44bRFRDjkQQog=
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DatabaseName
DB_USERNAME=root
DB_PASSWORD=
-
For Send Mail
- Create a Mailtrap account using path -> https://mailtrap.io/
- Get the username & password from Mailtrap account using path->https://mailtrap.io/inboxes/2087677/settings
- Set up .env file as-
MAIL_MAILER=smtp MAIL_HOST=sandbox.smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=YourUserName MAIL_PASSWORD=YourPassword MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS="yourEmailAddress" MAIL_FROM_NAME="${APP_NAME}"
-
Create data table write the command in cmd
php artisan migrate
-
Note: If it's not working correctly then following the s
-
Manually, Create the desired database in the path->
http://localhost/phpmyadmin/
-
Or Create database using cmd as-
- Set up the Environment variabel
C:\xampp\mysql\bin
- Write the command in the cmd
mysql -u root -p (password: Not Used) create database DatabaseName; (semicolon must be add in the end) show databases; exit;
- Again run the command in the cmd as-
php artisan migrate
- Set up the Environment variabel
-
For Run Project
- Start the Xampp server
- Run command in the root directory
php artisan serve
- Run command (Another CMD) in the root directory
npm run dev
- Visit path -> http://127.0.0.1:8000/