Laravel→ The Presentation Installation: 1. Install php <=7.3 v. 2. Composer ( composer.exe) 3. Install Laravel→ composer global requi...
Laravel→ The Presentation
Installation:
1. Install php <=7.3 v.
2. Composer ( composer.exe)
3. Install Laravel→ composer global require laravel/installer
4. Create Project→ composer create-project --prefer-dist laravel/laravel blog
( In the place of blog you should write your project name(xyz).
MVC:
MVC Pattern stands for Model-View-Controller Pattern. This pattern is used to separate the application's concerns.
Model - Model represents an object carrying data. It can also have logic to update the controller if its data changes.
View - View represents the visualization of the data that the model contains.
Controller - Controller acts on both model and view. It controls the data flow into the model object and updates the view whenever data changes. It keeps view and model separate
Project Interface/Architecture
This is what our project files look like.
Model:
Model represents an object carrying data. It can also have logic to update the controller if its data changes
Resources:
In this file, we have our resources like how to style the page and what to present in the web.
This all code is written the file welcome.blade.php
Controller:
All the control belong to the project is written in the controller.php file.
Public:
The main file in this folder is index.php this is the file which firstly executes when the user enters the domain of the site of ip of the site and other things are appear through this file.
Eg..
And if we want to saw any file or object in our project we have to put this in here otherwise we should give the accurate destination of that object.
.env
This is the most important file in our project which is a very private file because inside this fiel
We have our sensitive data is located, eg.. username, password, and others.
HTML/CSS:
<h1>heading tag</h1>
<p>for paragraph</p>
<b>for bold</b>
<u>for underline</u>
<i>to make italic the font</i>
<div>for the division</div>
<table> this is for the table
<td>this is the table data
<th>table data</th>
<tr>table row</tr>
</td>
</table>
anchor tag
input tag
button
table
alignment
margin padding
form pick image
list
border width color
curve border
COMMENTS