Questions tagged as 'laravel-rotas'

1
answer

Is there any way to define a specific Title in the Laravel routes?

In%% 5, I'm creating a menu dynamically by making a Laravel in the list of registered routes. So, I can have a menu displayed every time a new route is created, however I'm only listing those that foreach the contém metho...
asked by 26.04.2016 / 22:31
1
answer

Route groups with default values in Laravel

I need to understand how I create routes with default values (it would be the default we have in the switch function of PHP). I'm looking for something like: Route::group(['prefix' => '/'], ['as' => 'public'], function(){...
asked by 22.07.2015 / 15:05
1
answer

Laravel Authentication

I am studying the authentication part of Laravel and based on the following documentation Laravel I followed all the steps: I configured the database I put the routes I've placed Views When I log in to: ( link ) it opens the form...
asked by 19.10.2016 / 04:58
1
answer

ExceptionController error on Laravel 4 route

I set up a restore route in my routes.php <?php Route::model('user', 'User'); Route::model('comment', 'Comment'); Route::model('post', 'Post'); Route::model('role', 'Role'); Route::resource('upload', 'UploadController'); Route::get('ba...
asked by 19.03.2014 / 21:06
2
answers

How to know the current route in Laravel 4?

In Laravel 5, we can get the current route (say the class instance) using the Illuminate\Http\Request class, using the route method. So: public function handle(Request $request) { $rota = $request->route(); } W...
asked by 12.04.2016 / 18:15
1
answer

Blocking routes for a certain type of User in Laravel 5.3 [duplicate]

This is my first post here. I'm starting to use Laravel 5.3 to create a system. In this system I will have two types of users (Admin and Client). I'd like to block certain routes for the client. I've been able to limit clients from viewing cer...
asked by 08.12.2016 / 18:36
2
answers

Request in url with laravel

I'm trying to start in Laravel , and I'm having problems with requests , when I only do request like localhost:8000/hoteis everything works it fetches the page and works perfectly, but if% it is not working, the route f...
asked by 30.07.2016 / 01:17
1
answer

Sending data to Controller via Ajax LARAVEl [closed]

I have a project in which I have to send the CPF of a patient to a method in the controller in order to search within this method and already return the search value to the view, but I am not able to send those values to the view. Update I...
asked by 10.09.2017 / 22:00
1
answer

Pass value from select to route in laravel

I do not know much about web development and I'm kind of lost. I need to pass the id of a movie to a laravel route and I'm not sure how to get that value. <select class="form-control" style="width: 20%" onchange="" id="select" name="filme"...
asked by 11.03.2017 / 15:30
1
answer

Order of routes in Laravel 5

I'm starting in laravel , I have the following routes: Route::get('/', function () { return view('indextemplate'); }); Route::get('/', function () { return view('footer'); }); Route::get('/', function () { return view('header...
asked by 14.07.2016 / 00:23