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 are the Writing Gates and Policies ?
How to create migrations in laravel? Explain step by steps.
What is helpers in laravel?
List site types supported by homestead?
How to fetch data from database in laravel?
Explain collections in laravel.
What is seed in laravel?
What is the best package to set up billing and subscription with stripe and braintree?
What is laravel passport?
What is meant by Laravel - Encryption ?
What is eloquent orm in laravel?
What is laravel homestead?
What is view laravel?
What is laravel api?
Tell me what is official website url of laravel?