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 the make method?
How to get, set cookies in laravel?
What do you mean by boot & register method used in laravel 5?
List server requirements for installing laravel 5.5?
Do you know what is routing and how, and what are the different ways to write it?
What is redirect routes?
What is laravel 5?
What are the three types of authentication?
What is contract in laravel?
What is laravel passport?
are you able to laravel create-project via composer, explain how?
Explain how to enable multiple php versions in homestead?