Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How to enable multiple php versions in homestead?

0 Answers  


What are the benefits of laravel?

0 Answers  


What is use of pluck in laravel?

0 Answers  


Tell me why laravel over other php frameworks?

0 Answers  


Explain important directories used in a common laravel application.

0 Answers  


How does the ioc (inversion of control) container work?

0 Answers  


How to use joins in laravel?

0 Answers  


How to launch vagrant box?

0 Answers  


What is a named route?

0 Answers  


What is laravel migration?

0 Answers  


Explain how to get requested path in laravel?

0 Answers  


Explain how to create custom middleware in laravel?

0 Answers  


Categories