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
Home | Category |
Step-1: For Set up Project
- Clone this to your local machine using
gh repo clone learnwithfair/laravel-crud-project
- Run 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=
- 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/