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 namespace in laravel?
Explain how to share your homestead with others?
How do I require authentication for a set of routes associated with a subdomain?
What do you know about traits in laravel?
Explain about input() method.
What are the validations in laravel?
Tell me is laravel an open source?
What is dd() function in laravel?
Where will you define laravel's facades?
What is laravel artisan?
Do you know validations in laravel?
What is a service provider laravel?
How to use update query in laravel?
What do you understand by eloquent orm?
What is pluck method in laravel?