Friday, April 13, 2018

How the Url path from file path name to another name in laravel - development

How the Url path from file path name to another name in laravel

Fins below the route code.

Route::get('clientlayout.main.index','InvoiceTicketController@show');
Route::get('clientlayout.main.mydomains','InvoiceTicketController@set');

When I run these routes I’m getting the url as

http://localhost:8000/clientlayout.main.index and
http://localhost:8000/clientlayout.main.mydomains.

I want my Url to be changed as follows: http://localhost:8000/index and http://localhost:8000/mydomains.

Suggest me a solution for changing the route to rectify this issue.



from Laravel Questions and Answers https://laravelquestions.com/laravel/how-the-url-path-from-file-path-name-to-another-name-in-laravel/
via Lzo Media

No comments:

Post a Comment