what is meant by Views ?
Answer / 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 |
What is lumen?
How to list all routes in laravel?
How do I register a service provider?
Explain the service container?
Is laravel an mvc framework?
What is meant by Logging ?
How do I make a particular task run everyday by 10pm?
What is namespace laravel?
How would you add a 3rd party package like sentry?
What is laravel scout?
What is named route?
What is rate limiting?