Questions tagged as 'laravel'

2
answers

friendly url from laravel form 5.5

I have the following url with multiple filters given from a form link the url looks like that but I can not make it look like this link I'm using this but it does not work because since it's not a url, it's a request. Route::ge...
asked by 03.07.2018 / 18:54
0
answers

Create new page when creating PDF file with dompdf in laravel 5.6

I'm using Laravel 5.6, and I want to create a new page to the PDF file, having loaded the first 25 records, using DOMPDF . The controller I have it in the following way: <?php namespace App\Http\Controllers; use Illuminate\Http\Reques...
asked by 22.06.2018 / 20:10
0
answers

Instanciar function in laravel

What would be the best way to instantiate an external function within a controller in laravel? I have the following code: <?php namespace App\RandomCode; class RandomCode { function Generate() { $caracteres = "ABCDEFGHI...
asked by 16.06.2018 / 04:27
0
answers

FullCalendar add holidays automatically.

Is there any way to add to fullcalendar, in this case I use the laravel framework, national holidays in an "automatic" way? I know I can create arrays, and I know how to add them, let's say inserting from a button, but I would like to know if th...
asked by 18.06.2018 / 16:37
0
answers

Use namespace in php

How can I use a namespace in PHP without doing a file include (laravel or synfony style)? Example: Change this code:      namespace fub; include 'file1.php'; include 'file2.php'; include 'file3.php'; use foo as feline; use...
asked by 15.06.2018 / 01:16
0
answers

Assign SQL Query to a Variable

I have this Consultation: $result = DB::table('cliente') ->select(DB::raw("CONCAT( TRIM(SUBSTRING( NombreCliente,1,1) ), TRIM(SUBSTRING( NombreCliente, locate( ' ',NombreCliente), 2) ) ) AS INICIALES")) ->get(); I get the...
asked by 15.06.2018 / 01:18
1
answer

Forbidden Access, Xampp in Amazon EC2

I have an Amazon EC2 (windows server) where xampp has been installed to run PHP applications, an SSL security certificate has been implemented in the xampp, the issue is that there are other applications developed by another programmer and that...
asked by 15.06.2018 / 01:15
1
answer

Send email from several directions laravel

I have 2 emails to send notifications to my users one is [email protected] and the other [email protected] the issue is that in the .env file I can only configure one if I add another configuration it does not take it from what form can...
asked by 13.06.2018 / 22:58
0
answers

how to send an array that has a key x and that key contains another array with the responses of an input

hi all my problem is the following, I have these inputs where I send user information especially this is where he sent the information <input type="{{$tag->tag_type}}" class="form-control" value="{{$option->option_value}}" name="t...
asked by 14.06.2018 / 22:53
1
answer

update several rows of the same table

I am trying to update several rows of a table, for now I have only managed to update the first row and the rest is not updated. foreach ($request->recibido as $key => $value) { $cont = Contenido::where('id_envio','=',$id)->fir...
asked by 12.06.2018 / 18:31