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

Explain how to do subdomain routing in laravel?

566


Explain laravel’s service container?

547


What is database migration in laravel? How to use this?

527


Explain how to install valet?

579


What is open source software?

520


How to generate a controller with resources in laravel?

553


Explain how to do 301 redirects in laravel?

535


How to write php code in laravel blade?

544


How can I learn laravel fast?

547


What is reverse path multicasting?

556


Please write some additional where clauses in laravel?

526


What do you mean by laravel mix?

553


Explain web.php route.

544


What are pros and cons of using laravel framework?

528


What does csrf token in laravel 5?

567