What is View?
Views contain the HTML served by your application and separate your application logic from your presentation logic. Views are stored in the resources/views directory.
Creating View
resources/views/aboutme.blade.php
Create Route for View
Syntax:-
Route::get(āuriā, function(){return view(āview_nameā)});
Example:-
Route::get(āabout', function () {
return view(āaboutme');
});
If your route only needs to return a view, you may use the Route::view method.
Syntax:- Route::view(āuriā, āview_nameā);
Example:- Route::view(āaboutā, āaboutmeā)
Latest posts by Amardeep Dubey (see all)
- Remove Duplicate Records from MySQL Server - October 12, 2021
- How to Secure Your Apache Server - September 10, 2021
- Linux security - September 9, 2021