adspace


How to return a view from route in laravel?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what version of laravel do you generally use?

839


Tell us have you used lumen before?

809


What is latest version of laravel?

869


How much laravel experience do you have?

815


What is current stable version of laravel?

870