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
Can laravel be hacked?
Explain me active record implementation. How to use it laravel?
What is php artisan in laravel?
State the difference between authentication and authorization.
What are the advantages of queue?
What is blade php in laravel?
How will you create a helper file in laravel?
List available types of relationships in laravel eloquent.
How do I setup localization for an application?
How to use aggregate functions in laravel query?
Tell me in which language it was written?
What do you mean by laravel dusk?
What is laravel eloquent?
What is laravel dusk?
What is a Laravel - Contracts ?