Questions tagged as 'laravel-5'

1
answer

Problem with Input :: Old select laravel

I'm doing a registry, and I have a problem that when validating the selects, if an error occurs and returns to the registration page, I do not have the value when I use a ng-repeat. This case where I have 2 options within the select if it wor...
asked by 24.10.2016 / 22:30
1
answer

My dropdown works as a button

I do not know what happened, from one day to the next my dropdown began to work as if it were a button. In my project they always worked well and I started to continue with what I was doing and I realized that now when I give a dropdown it do...
asked by 03.10.2016 / 02:27
1
answer

htmlentities () expects parameter 1 to be string, given array

This is my first post and I hope you help me and be able to help many of you in the same way. As you saw in the title, it generates that error, and that happens to me now that I'm learning Laravel 5.1 This is the error    htmlentities () e...
asked by 20.09.2016 / 05:41
2
answers

Prevent that when reloading a page recreate the same record

How do I avoid reloading the page to which a user is redirected after adding a record in laravel 5.3, to recreate the same record? the idea is that it does not do it, but in case the user refreshes the screen for some reason the same record is n...
asked by 04.11.2016 / 06:12
1
answer

Send html table in Mail :: send Laravel 5

Is it possible to send an html table in an email from laravel? I want to send in the body of the message a fixed text (which I already manage to do) concatenated with an html table but when you insert this table in the email it does not send...
asked by 05.08.2016 / 19:12
1
answer

How to change the path redirected by the auth middleware in Laravel 5.3?

using the php artisan method make: auth I run into the problem that once I use route protection doing route::group(['prefix'=>'admin', 'middleware'=>'auth'], function(){...} When I want to enter a protected route, it redirects me to /...
asked by 10.09.2016 / 00:24
2
answers

Multiple filters in a database query from Laravel

When I execute the SQL statement SELECT * FROM 'payments' WHERE 'estado' IN ('abono', 'adeudo', 'espera') AND 'fecha_pago' < '2016-09-08' ORDER BY 'id' Result: it brings me the data correctly, Question: What is the way, to do the same...
asked by 08.09.2016 / 23:47
1
answer

Redirect to login, if not authenticated

I have a user authentication form that if successful, saves the user id and company id in session variables (\ Session), but sometimes when the server closes my session for a time limit, or when the user tries to enter a route directly without g...
asked by 06.08.2016 / 00:58
1
answer

Problems with two middlewares and abort 401

I'm using two middlewares ROUTE FILE Route::group(['middleware'=>['web','auth']], function() { Route::group(['middleware'=>'administrador'], function() { Route::resource('usuarios', 'UsuariosController'); }); Rout...
asked by 05.07.2016 / 18:50
1
answer

smtp works but mail laravel 5.2 does not arrive

Laravel says that my email has already been sent, but nothing has arrived on the mail tray and the email I use to send the messages does not record the email sent, which could be happening. So I have my .env MAIL_DRIVER=sendmai...
asked by 29.06.2016 / 23:54