Questions tagged as 'laravel-5'

1
answer

Error 500 when sending POST with GPRS module SIM7100A, the data arrive null

and I tried to make a publication on the Thingspeak platform but the operation returns an incorrect request of 400, and I tried a publication with another test platform and got 200ok, but thingspeak did not work for me, the commands I use are as...
asked by 02.11.2018 / 11:50
1
answer

Get the last record of DynamoDB

I'm trying to get the last record of x variable in a dynamoDB table using php. The simple way I had was to get the data for the last 10 minutes and those get the first. //Ruta de la variable que se quiere obtener $nameVariable = $this->conv...
asked by 18.09.2018 / 00:58
1
answer

Retrieve image from storage folder in laravel 5.5

I have a problem that I can not find a solution for, I saved the path of an image, which I store in the storage / employees folder, when I retrieve it in local it works correctly but when I upload it to a hosting I get the following error:   ...
asked by 04.09.2018 / 17:51
1
answer

How to pass data from a controller to a module included with @include Laravel Blade?

I am developing a web with Laravel and I need to pass the data that comes from a controller to a module called seciones.blade.php that is in a folder called includes , so that the structure is like this: includes/secciones.blade.p...
asked by 21.06.2018 / 00:08
2
answers

SQL query in Laravel

How can I pass the following query in Laravel 5.4 SELECT CONCAT( TRIM(SUBSTRING(NombreCliente,1,1)), TRIM(SUBSTRING(NombreCliente, locate( ' ',NombreCliente), 2) ) )INICIALES FROM 'cliente'     
asked by 14.06.2018 / 22:49
1
answer

Use of group_concat with eagger loading in Laravel

   I have to return in a table in HTML, the name of the user and the   names of posts; however, I have registered more than one post   user; for which I require to use group_concat() for   put them in a single cell; I'm trying it this way...
asked by 26.08.2018 / 02:38
1
answer

Error with default values

You see, I have the following table User: Schema::create('users', function(Blueprint $table){ $table->increments('id'); $table->string('name'); $table->boolean('sexo'); $table->string('email')->un...
asked by 17.06.2018 / 12:30
2
answers

Validator not found

To begin with, I have this migration: Schema::create('animals', function (Blueprint $table){ $table->increments('id'); $table->string('nombre'); $table->string('cientifico'); $table->string('tipo');...
asked by 09.06.2018 / 14:09
1
answer

How to perform a Method Post Ajax in Laravel?

At Laravel, while I try to send a request via POST using ajax , it returns the following error:    405 (Method Not Allowed). $("#Enviar").click(function (e) { e.preventDefault(); var nombre = $('#name').val(); var nombr...
asked by 27.05.2018 / 14:13
2
answers

Laravel Bring data of the model grouped by months

Hello, I have the following table in the DB Fruta id | name | precio | fecha_compra I would like to bring the total price of all purchased fruits grouped by months using eloquent or querybuuilder the result that is but is the following...
asked by 27.06.2018 / 23:06