How to return a view from route in laravel?



How to return a view from route in laravel?..

Answer / Abhinav Kumar

"To return a view from a route in Laravel, you can define a route and call the `view()` function with the name of your view file. For example: `Route::get('/', function () { return view('welcome'); });`. The view will be rendered using the Blade templating engine."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What is laravel used for?

1 Answers  


What are the difference between laravel 5 & laravel 4?

1 Answers  


What is a Encryption Process ?

1 Answers  


What is the use of route in laravel?

1 Answers  


Is laravel a programming language?

1 Answers  


What is laravel service container?

1 Answers  


How to check an input value is present or not in laravel?

1 Answers  


How to check table is exists or not in our database using laravel?

1 Answers  


What is a Restful Resource Controllers ?

1 Answers  


What is eloquent orm?

1 Answers  


Explain me active record implementation?

1 Answers  


Do you know what is laravel elixir?

1 Answers  


Categories