Most voted "laravel-routes" questions
For URL mapping questions for Actions and Controllers.
Learn more…130 questions
Sort by count of
- 
		10 votes4 answers401 viewsSkipping route due to poorly formatted parameter is a syntax error?For example, I have the route GET: /user/{id}, id passes a regular expression validation of type [0-9]+. When performing requests with the verb GET for the following Urls: /user/17, returns user… 
- 
		9 votes1 answer2490 viewsDoes the REST standard allow the use of query string?Most frameworks I know use URL parameters as follows: /recurso/variavel For example /produtos/{nome} /produtos/{categoria} Some use between {} others <>, etc. To differentiate the searches is… 
- 
		8 votes1 answer1081 viewsURL::Previous() returns incomplete pathHow I’m studying the book Code Bright, from time to time there are some errors that I take a long time to resolve. However, I couldn’t find a solution in Google. By doing the Redirect::to() from one… 
- 
		7 votes1 answer8639 viewsPass parameter from one route to anotherI need to take a variable from the url and redirect with the parameter to another Function Route::get('doacao/{id}', function(Request $request){ return… 
- 
		6 votes2 answers565 viewsWhat are ASP.NET MVC routes?In ASP.NET MVC always appears to me the term route when I read something related to this technology, however, I started studying APS.NET MVC recently and this term route is causing me trouble.… 
- 
		6 votes2 answers307 viewsBest practice for client to choose response format (JSON / XML)I would like to know the best coding practice that allows the client to define the response format for the request he made, which can also include filters, conditions, ordering, etc... I made a… 
- 
		5 votes1 answer1377 viewsHow to implement a Route System in MVC?I am creating an MVC Framework (more for studies), and I am trying to implement a route system, but I’m not sure how/where to run the routes. So I’d like to know if there’s any flow of execution of… 
- 
		5 votes1 answer195 viewsLaravel Auth with SubdominioGood morning, I’m trying to perform an auth with Ubdomain, but every time soon on the site returns the error of Too Many Redirects. This is my .env: SESSION_DOMAIN=.meudominio.com.br And the first… laravel laravel-5 laravel-routes subdomain routingasked 6 years, 3 months ago Vitor Marileu Figueredo 155
- 
		4 votes3 answers1374 viewsShould I use routes or controllers in Laravel 4?I’m a beginner in Laravel and I have doubts about the use of controllers, I read several examples/ tutorials and see the vast majority use the routes for example for a form request, to display… 
- 
		4 votes1 answer338 viewsCodeigniter 3 - Subdirectory structure - RoutesI created a project in the IC and I am going through the following problem: I split my controllers into two folders: application/controllers/painel/ and application/controllers/site/ Being that in… 
- 
		4 votes2 answers501 viewsHow do I determine the search path for Controllers and Views?I’m studying ASP.NET Core MVC on a macOS. When I create a new project, the IDE automatically arrow my Views into a folder called "Home". If I change the name of that folder or change the folder… 
- 
		4 votes1 answer7792 viewsPDF Generator with Laravel Framework?I need to do the snappy generate reports from BD. But for that I needed examples of using the snappy, in the documentation of github there’s an example, but that example didn’t help me. I needed an… 
- 
		4 votes1 answer134 viewsPass a method on all routes of all http methods except twoBasically I want to make all the routes that come from any http method (get, post, put, ...) pass, first, by a method that will make the verification if the user is authenticated, however, this… 
- 
		4 votes2 answers972 viewsMissing required Parameters for [Route: ] [URI: /{}/]I am trying to pass an update parameter, but it is giving error. Controller public function update(ColaborationFormRequest $request, $id { $dataForm = $request->all(); $colaboration =… 
- 
		3 votes0 answers551 viewsHow do you get real-time traffic information like Waze?I can enable traffic density across the map using setTrafficEnabled(true), as demonstrated here: I would like to make other information available (accidents, blitz, etc. ) in Googlemaps v2 the same… 
- 
		3 votes1 answer93 viewsExtender Resource ControllersI’m doing what I want in a way and I’m looking for alternatives or better ways to do it. I am using Resource Controllers in my application. I am also using softdelete in several models, so my routes… 
- 
		3 votes1 answer469 viewsProblem with Custom Routes and Httphandler in ASP.NET MVCOn a project I’m working on, I wrote a HttpHandler to bring as a response an image instead of a View, sort of like this: using System; using System.Web; using System.Web.Routing; using… 
- 
		3 votes1 answer226 viewsTreat request redirected by HtaccessI’m studying about routing, trying to (re)create a routing solution of mine. I’ve always used the following .htaccess to redirect my requests: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f… 
- 
		3 votes1 answer1698 viewsRoutes in separate filesHow do I put routes in separate files? var express = require('express'); var App = express.Router(); var Notas = require('../api/notas'); App.route('/notas') .get(Notas.read) .post(Notas.create);… 
- 
		3 votes1 answer75 viewsIs there an online service that requests at a given url?I need a requisition made GET in a url every 5 minutes. Is there any free service that does this? 
- 
		3 votes2 answers155 viewsRails performing XHR request when loading pagesI have noticed that in every page/route exchange, the Rails *make a new request Ajax to search for this new data (HTML), and thus perform the page exchange. I did several searches but the closest I… 
- 
		3 votes1 answer83 viewsHow to identify in the constructor the method that was called?How do I stop at builder of my controller identify which method was called? I’m using the Laravel 5.3 and my controller follows the pattern resource (index, show, edit...).… 
- 
		3 votes1 answer215 viewsValidating routes in LumenIn the Laravel have for example: Route::get( '/produtos/mostra/{id}', 'ProdutoController@mostra' )->where('id', '[0-9]+'); How this kind of validation would be done in the Lumen? Given that a… 
- 
		3 votes2 answers3927 viewsHow to edit the routes created by make:auth?I have a project at Laravel where I used the command make:auth to create the views, routes, controllers etc, a registration form. I need to change the a view which is used by default in login for a… 
- 
		3 votes1 answer111 viewsHow to create metadata (custom data) on an Laravel route?I wonder if in Laravel, beyond the information I already have on a route, as the name, action or uri, there is some way to define metadata. For example: Route::get('/', [ 'uses' =>… 
- 
		3 votes1 answer1220 viewsPHP Built-in and htaccess - Route System / User Friendly URLI have a file. htaccess for route diversion on the server (production) and a router.php file for route diversion using PHP 7’s Built-in server. php -S 0.0.0.0:8000 router.php However, I would like… 
- 
		3 votes1 answer2482 viewsLaravel: route with parametersI have a school system with a call screen where there is a button that opens a modal with a form to choose the class and the date (chamadas/index). This form will redirect to a screen with the list… 
- 
		3 votes3 answers2910 viewsRoutes accessible only to users logged in to Laravel?Can someone give me a hint on how to create routes that can be accessed only by users who are authenticated, using the Laravel? For example, routes that refer to sharing, editing, deleting and… 
- 
		3 votes0 answers153 viewsCalculate routes, distance and time in OpenstreetmapI need an API that calculates routes between Source/Destination and provides distance and time route to a matrix of origins and destinations using the Openstreetmap. That works like the API… 
- 
		2 votes3 answers2387 viewsUser-friendly URL for GET (search) form in Laravel 4My question is this:: I have a search form (GET), and would like to know how when running Submit send these parameters to the URL in a friendly way. Obs.: parameters are not mandatory. Form: {{… php laravel-4 laravel laravel-routes friendly-urlasked 11 years, 10 months ago Patrick Maciel 2,281
- 
		2 votes1 answer224 viewsMy site loads different pages on different Operating SystemsI’m going through a very strange problem. When using Windows (Windows 7), my page loads as expected: @extends + index.php Already on Linux (Ubuntu 13.10) it is redirecting me to the route… 
- 
		2 votes2 answers3721 viewsCodeigniter - URL friendlyI’m trying to use the Codeignoter framework. but I’m not getting past it: http://localhost:8087/CodeIgniter/index.php/usuario/home for that reason: http://localhost:8087/CodeIgniter/usuario/home… 
- 
		2 votes1 answer207 viewsLaravel 4.2 - 405 Method Not AllowedI have a route that was working normally and stopped working for no apparent reason. It has the following configuration: Route::put('/clientes', 'Clientes@update'); The mistake I get is: Method Not… 
- 
		2 votes1 answer334 viewsNomethoderror in Home#indexNext, I received a challenge to create a page with login, using Sign in and with the user logged in, that he could create a task list, an to-do list. The login I managed to do and works well,… 
- 
		2 votes1 answer722 viewsLaravel - How to call a different action from store,update, Edit?I created a action without being the standard of resource, how can I call the same for an action on form as I call the update and store. <form method="POST" role="form"… 
- 
		2 votes1 answer95 viewsHow to insert a file into an arrayI’m having a hard time and I couldn’t fix it. I have a settings file in this file I have an array and several arrays within it and one of these is my route array. What I need to do is include a file… 
- 
		2 votes1 answer969 viewsError : The Response content must be a string or Object implementing __toString(), "Object" GivenI use Laravel 5.3 and I’m having this problem: The Response content must be a string or Object implementing __toString(), "Object" Given, when I try to use a route which returns an image of a… 
- 
		2 votes2 answers247 viewsSend parameter from one route to anotherI want to send a variable from one route to another, to display this variable in the view, use example: public function create(ExamRequest $request) { Exam::create( $request->all() ); $message =… 
- 
		2 votes2 answers526 viewsPassing of parameter LaravelAs step 2 or more variables on the route? View <a href="{{route('transferir.edit', [$destino->servidor->idservidor, $destino->setor])}}" class="btn btn-default btn-xs"… 
- 
		2 votes2 answers526 viewsPassing of parameter LaravelAs step 2 or more variables on the route? View <a href="{{route('transferir.edit', [$destino->servidor->idservidor, $destino->setor])}}" class="btn btn-default btn-xs"… 
- 
		2 votes1 answer160 viewsDoubts about routes Angular JS x ASP.NET MVCI would like to clear up some doubts about Angular JS x ASP.NET MVC. Created an empty ASP.NET MVC application that will work with WEB API, configured all my routes with Angularjs, created an html… javascript asp.net-mvc angularjs asp.net laravel-routesasked 7 years, 11 months ago Nicola Bogar 1,149
- 
		1 votes3 answers572 viewsError with complementary routes in Laravel 4Initially, I created the following route (1st search): Route::get('/buscar/profissoes/{city_id_slug?}', array('as' => 'neighborhoods.city', 'uses' => 'NeighborhoodsController@getIndexCity'));… 
- 
		1 votes1 answer165 viewsExceptioncontroller error on Laravel 4 routeI set a route Restore in my file Routes.php <?php Route::model('user', 'User'); Route::model('comment', 'Comment'); Route::model('post', 'Post'); Route::model('role', 'Role');… 
- 
		1 votes1 answer548 viewsSubdomain does not load styles and scriptsGood morning, 1- I created a new solution in Visual Studio 2012; 2- I created ASP.NET MVC 4 Web Application. I opted for a "BASIC" project, Framework 4.5 and the Razor engine; 3- I created the Home… asp.net-mvc route laravel-routes subdomain asp.net-mvc-routingasked 10 years, 8 months ago Lucas 13
- 
		1 votes1 answer249 viewsGroups of routes with default values in LaravelI need to understand how I create routes with default values (it would be the default that we have in function switch PHP). I’m looking for something like: Route::group(['prefix' => '/'], ['as'… 
- 
		1 votes1 answer320 viewsMiddleware for routing authentication to an existing vector in LaravelI’m starting to understand Laravel’s routing system now, and I’ve come up with a question regarding the Middleware. Can I have two equal routings for the same vector where when my user is… 
- 
		1 votes3 answers1139 viewsRoute to static pages in MVCI have a question about the application ASP.Net MVC: Structure Views | +-- Home | | | +-- Index.cshtml | | | +-- Page.cshtml | +-- Users | | | +-- Details.cshtml | +-- Paginas | | | +--… 
- 
		1 votes1 answer148 viewsActionresult Dynamic RouteI have two Controllers: College and Course public class InstituicaoController : Controller { // GET: Instituicao public ActionResult Index() { return View(); } public ActionResult Instituicao(string… 
- 
		1 votes1 answer752 viewsHow to trace routes in a C# Windows Forms application from latitude and longitudeHello, I would like to know how to best display a route from the latitude and longitude that are in the database in a C# Windows Forms application. I’ve searched the web and I’ve managed to find… 
- 
		1 votes2 answers436 viewsProblem with Laravel Routes 5I organized my Controllers by folders: Ex:Dashboard/Concessesionaria/Brands -> Carroscontroller.php In Rota I tried to inform thus Route::get('Painel\Concessesionaria\Marcas', ['as' =>…