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

How to create & register a service provider in laravel 5?

492


State the difference between authentication and authorization.

521


Please explain what are the main differences between laravel 4 and laravel 5.x?

530


What are the difference between laravel 5 & laravel 4?

515


List the default ports that are forwarded to your homestead environment?

481


Explain service container?

555


What are helper functions and name 10 with their purposes?

601


Differce between contracts and facades?

572


What are the example of services?

557


How do I make a particular task run everyday by 10pm?

522


How do I register a middleware?

623


How to install laravel via composer?

523


What is meant by Implicit Controllers

1086


Is laravel an open source?

537


List types of relationships available in laravel eloquent?

548