what is Basic Routing ?

Answer Posted / sunil kumar

All the application routes are registered within the app/routes.php file.

This file tells Laravel for the URIs it should respond to and the associated controller will give it a particular call.

Example :

<?php
Route::get('/', function ()
{
return view('welcome');
}
);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a controller middleware?

546


How to Assigning Middleware to Route ?

642


Tell me how can you display html with blade in laravel?

507


How to set cookies in laravel?

509


What is route model binding in laravel?

498






What are redirect responses?

510


Which class is used to handle exceptions?

500


What is monolog library?

508


What are the software’s included in laravel homestead?

528


What is a Laravel - Authentication ?

838


Is laravel support caching? Explain

528


What is Named Routes.

700


What is trait in laravel?

504


What are laravel facades?

563


What is laravel service provider?

507