Answer Posted / 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 View All Answers
What are the feature of laravel 5.0?
What is binding in laravel?
What do you mean by route groups used in laravel 5?
Is laravel safe from sql injection?
How can you make real time sitemap.xml file in laravel?
What are contracts?
How to Accessing Session Data in Laravel ?
Tell me what is system requirement for installation of laravel 5.2 (latest version)?
What is luman?
What is response macros?
What is response in laravel?
What is closure in laravel?
How do I register a middleware?
Explain short brief on Facades in Laravel ?
What is laravel artisan?