MOTOSHARE šŸš—šŸļø

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

Complete Reference of view in Laravel

Uncategorized

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’)

Amardeep Dubey
Latest posts by Amardeep Dubey (see all)
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x