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 php artisan.
What is guarded attribute in a model?
Does laravel support caching?
What is csrf protection token?
What is vagrantfile and homestead.yaml?
What is the laravel framework?
What is kernel in laravel?
How do I perform dependency injection in laravel?
How to generate pretty urls in laravel?
Explain the concept of encryption and decryption in laravel.
How to check an input value is present or not in laravel?
Where do you regiser service providers?