Questions tagged as 'laravel'

1
answer

format an int data to local currency

I have a database and example in the view I call it <td>{{ $payment -> pago }}</td> but example is saved as INT, example if I have saved shows it to me so 3000 but I want you to show it this way 3,000.00 laravel has...
asked by 22.08.2016 / 22:01
1
answer

Laravel: fill a select with values of tables with a foreign key

I am having some problems when generating select fields with data in my bd, the scenario is as follows: I have 5 tables: shopping cart: id, name, description, total_price Car_beverages: id, beverages_id, shopping_car_id (foreigner)...
asked by 06.09.2016 / 05:42
1
answer

Download laravel zip file

I have this code that generates a zip with the images I keep in the download directory, these images are previously selected ... Example for the first shipment: I select image1, image2, image3 and image4, therefore in my download directo...
asked by 13.08.2016 / 04:31
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

Laravel Missing required parameters for [Route: pharmacy-detail] [URI: pharmacy / {slug}]

I get this error when trying to call a route <a href="{{ route('farmacia-detail', $medicamento->slug) }}" class="btn btn-primary">Detalle</a> cuando el llamado a ella en: @foreach ($medicamentos as $medicamento)...
asked by 30.12.2018 / 21:42
0
answers

Synchronize repositories in real time

I am starting a new project with laravel in a shared hosting. My question is if you know any way to synchronize the project that is local with the project that is in the hosting. I am using visual studio code as a code editor. Currently I...
asked by 30.12.2018 / 00:59