what is meant by Views ?



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

Post New Answer

More Laravel PHP Framework Interview Questions

What are service providers in laravel?

0 Answers  


What is technology service provider?

0 Answers  


What is meant by Error Log ?

1 Answers  


What are view composers?

0 Answers  


Explain how to install installing mariadb on homestead?

0 Answers  






How to generate application key in laravel?

0 Answers  


What is your favorite feature of laravel?

0 Answers  


How to use delete statement in laravel?

0 Answers  


Which is better django or laravel?

0 Answers  


Explain how to get current url in laravel?

0 Answers  


Do you know what developed the laravel?

0 Answers  


Explain laravel service container?

0 Answers  


Categories