Answer Posted / surbhi
In MVC framework, the letter V stands for Views.
It separates the application logic and the presentation logic.
Views are stored in resources/views directory.
Generally, the view contains the HTML which will be served by the application.
Example : Copy the following code and save it at resources/views/test.php
<html>
<body>
<h1>Hello, World</h1>
</body>
</html>
Add the following line in app/Http/routes.php file to set the route for the above view.
Route::get('/test', function(){
return view('test');
});
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of route in laravel?
What is meant by Modularity ?
How to generate pretty urls in laravel?
What is helper in laravel?
Is any server permissions required for laravel?
Explain short brief on Facades in Laravel ?
What is laravel?
what is meant by Views ?
Is laravel better than wordpress?
What are advantages of laravel?
What is the use of dd() function?
What is meant by check method ?
What is your favorite feature of laravel?
Tell me how to use select query in laravel?
How to Storing Session Data in Laravel ?