Home Laravel 8 Basic Laravel 8 Project Step by Step

Basic Laravel 8 Project Step by Step

18 min read
0
0
925

Laravel is world famous php framework.it has various features.Laravel is a MVC architecture. In this tutorial will see how to make a website with crud operation contact form in Laravel 8.Laravel 8 – CRUD application tutorial with Example. Here is the Best Place to Learn Laravel 8 Articles.

Lets do the Project Step by Step Laravel 8 From Scratch

First Step

In computer create the folder Laravel Projects.and open the folder. and type the address bar on cmd

 Install Laravel 8

Create  a new Project type  the command on the command prompt  . I create the project name basicweb

Change .env File

Change .env File for username, password and DB Name

After that run check the application the welcome screen of Laravel framework look like this.

After that run check the application the welcome screen of Laravel framework look like this.

Create Controller

Create the controller name which is WelcomeController

Create the controller name which is AboutController

Create the controller name which is ServiceController

Create the controller name which is ContactController

Create Views

Create a Folder inside the resources-views

Create the following pages

welcome.blade.php

Service.blade.php

About.blade.php

Contact.blade.php

layout.blade.php

In Laravel you have create the pages using pagename.blade.php

Create page layout.blade.php

welcome.blade.php

service.blade.php

about.blade.php

then do the Contact form along with the crud opertions

Create a Folder inside the resources-views

inside the views folder create the contacts folder

inside the folder create the following pages

create.blade.php

index.blade.php

edit.blade.php

show.blade.php

thanks.blade.php

Controller

After that Pass All view pages through Controller. you have to add the Model namespace here

use App\Models\Contact;   Data is coming from the database via Model.

Routes

Pages are Manage through routes. If you are crud system simple you can add it the routes one line look like this

Create Model

Model is used to get the data from the database.

Create the Model name which is Contact

After Model is Created the look like this. Code inside Model Class (app\Models\)

 

 

Load More Related Articles
Load More By admin
Load More In Laravel 8

Leave a Reply

Your email address will not be published.

Check Also

Angular Spring boot API Bootstrap Table load

This Angular and Spring boot tutorial will teach you how to view the records using Restful…