Laravel is a FREE, Open-Source PHP Web Framework. It is created by Taylor Otwell. It follows the model, view, controller (MVC) architecture. The websites built in Laravel also secure. It prevents the many attacks that can take place on the website. In this tutorial (Laravel Starter Guide) we focus on laravel basic installation and introduction.
Laravel Starter Guide – Installation
PHP >= 7.1.3
BCMath PHP Extension
Ctype PHP Extension
JSON PHP Extension
Mbstring PHP Extension
OpenSSL PHP Extension
PDO PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Step 1: Get composer and Install it using this link – https://getcomposer.org/download/
Step 2: Install XAMPP for setup PHP environment.
XAMPP is an Open source software. It’s a Stands of Cross-platform (X). we can create a local web server using XAMPP. It’s easy to use and it works with Windows, Linux, and Mac OS. You can use alternative software for XAMPP, such as WAMP, MAMP but today I’m going to focus on XAMPP.
XAMPP Download link (121 MB) – https://www.apachefriends.org/index.html
WAMP download link (286 MB) – http://www.wampserver.com/en/#download-wrapper
MAMP download link (410 MB) – https://www.mamp.info/en/downloads/
Click on the downloaded XAMPP setup. (If you got any permission message or warning message click “OK” or “YES” button to continue). It will open the XAMPP setup wizard. Click the next button to continue.
Now it asked, what components we want to install and what’s not. We only need Apache and MySQL. (select following Components and click the next button to continue)
- Apache – Apache Server
- MySQL – Database Server
- Program Language
- PHP – Hypertext Preprocessor
- Program Languages
- phpMyAdmin – Database Control panel
Choose the installation location and click Next. (If you get Windows Defender Firewall Permission request, Tick both checkboxes and click Allow access.) Then click the next button to continue Now it will install XAMPP (wait till the installation complete) After the installation complete. Click Finish. It will open the XAMPP Control panel automatically.
This is a XAMPP Control Panel.
Now click Start up Apache and MySQL (It will start Apache and MySQL servers)
Now open your web browser and type http://localhost or http://127.0.0.1 on the address bar.
Step 3: Create a new directory, anywhere in your computer for your project. Then move to the path using CMD.
Step 4: Create new Laravel Project.
Via Composer Create-Project
composer create-project --prefer-dist laravel/laravel projectName
Step 5: Start the Laravel
Use following command to the run laravel project
php artisan serve
Now visit http://127.0.0.1
Open laravel project folder using your favourite text editor
Database Configuration – Create Database
Open a web browser and type http://localhost/phpmyadmin or http://127.0.0.1/phpmyadmin (it will redirect you to phpMyAdmin control page)
Click Databases and enter the Database Name then click Create, it will create our database.
My database name is “db_firstproject”
Database Configuration – Edit .env
Open .env file
Find the following lines and enter your details and save it.
DB_DATABASE=Enter_Database_Name DB_USERNAME=Enter_Username DB_PASSWORD=Enter_Password
Naming the Application
Use following command to name your application
php artisan app:name Your_Application_Name
Maintenance Mode – Start
php artisan down
Maintenance Mode – Stop
php artisan up
for more information: https://laravel.com/docs/5.8/
Hope this post (Laravel Starter Guide) will help you to learn something, If you enjoy my work then please share my posts with your friends and anyone who might be interested in web development and programming and don’t forget to subscribe my mailing list.
If you had any problem with this post, please do mention it in the comment section.
Like ctechf Facebook fan page: https://www.facebook.com/ctechf
What is HTML?
HTML (HyperText Markup Language) is developed by Tim Berners-Lee. An HTML document which can be displayed through a web browser is called a web page. HTML is not a computer language it’s a markup language.
For more information: HTML Tutorial: Introduction for beginners (Basic)
What is PHP?
What is SQL?
SQL (Structured Query Language) is a standard language for storing, managing and retrieving data in databases. SQL was developed at IBM by Donald Chamberlin and Raymond Boyce. and first released in 1991. SQL became a standard of the ANSI (American National Standards Institute) in 1986.
For more information: SQL Tutorial: Introduction for beginners (Basic)
What is Python?
Python is a scripting language and that is used for creating engineering-analysis tools, web development (server-side), software development, system scripting, and animation software. It designed by Guido van Rossum and first released in 1991. It’s an interpreted, High-level. General-purpose language. Python runs on Windows, Mac OS, and Linux.
Python Tutorial: Introduction for Beginners (Part 1)
Python Tutorial: Introduction for Beginners (Part 2)
SQL Tutorial: Introduction for beginners (Basic)
Python Tutorial: How to Connect MySQL Database in Python
Python Tutorial: Python GUI Programming (Tkinter)
Python Tutorial: Send Emails Using Python
Also Read :
- How to install Ubuntu on Windows 10
- JavaSctipt Tutorial | Introduction for Beginners
- Python Tutorial | Introduction for Beginners.
- Python Tutorial | Introduction for Beginners (Part 2).
- Python Tutorial | How to Connect MySQL Database in Python
- Python Tutorial: Python GUI Programming (Tkinter)
How to be a Programmer
- How to be a Programmer | Part 1: Introduction
- How to be a Programmer | Part 2: Top 20 Programming Languages
- How to be a Programmer | Part 3: Basic Concept of Programming
- How to be a Programmer | Part 4: Control Structures
- How to be a Programmer | Part 5: Number Systems
- How to be a Programmer | Part 6: Coding Systems in Computer
- How to be a Programmer | Part7: Logic Gates and Boolean Algebra