Questions tagged as 'laravel'

1
answer

Error http 419 laravel-cors?

To fix the crash of cors in api laravel I used the package Laravel Cors and followed everything I was informed in , but now it is returning an error when executing a request http post Error:    POST link 419 (unknown stat...
asked by 14.10.2018 / 18:47
1
answer

Error exporting Excel using Maatwebsite / Laravel-Excel

Exporting to excel works well for up to 10000 records but above that it returns me the error: "127.0.0.1 is currently unable to handle this request. HTTP ERROR 500 " Has anyone had this problem? public function getUsersRegion($region){...
asked by 22.08.2018 / 15:53
1
answer

Add fields dynamically in form in Laravel

I have a business registration form, within this register, the company can have 'n' certificates. These certificates should be added to the form as needed. How can I do this in Laravel? I have tried with Jquery (transforming the fields int...
asked by 29.08.2018 / 17:45
1
answer

Laravel Image intervention does not save extension

Image intervention does not save the image extension either in the bank or in the folder where the recorded files are stored. But I want to be recorded, follow the code to see if I'm doing something wrong. I did not want to put .jpg at the...
asked by 28.07.2018 / 01:17
1
answer

Add null value Laravel

I'm trying to do the following sum with Query Builder, but if one of the values is null and not sum DB::raw("estudantes_carga_horaria.dias_letivos_oferecidos + estudantes_carga_horaria.dias_letivos_oferecidos_outra_escola AS total_dias_letivos...
asked by 27.06.2018 / 13:17
1
answer

Disable button after redirect

I have the following situation: A screen (Screen1) where the user chooses the button related to a Set (an entity of my program), it clicks and opens a form of register for that Set. When you click on register, the form data is saved in the da...
asked by 27.06.2018 / 21:37
1
answer

How can I change the attribute of a column with Laravel Migrations

In my database I created using laravel migrations I have a column called celphone that unfortunately I did not add the ->nullable() attribute when I created it, now that the base is already in production I want to version this c...
asked by 14.07.2018 / 02:04
2
answers

Store array inside Cookie

Is it possible to store an array within a Cookie ? I'm trying this way: $carrinho = array(array('frete' => '', 'mercados' => array())); Cookie::queue('carrinho', $carrinho, 525600); But I get the error:    Argument 2 passed...
asked by 14.07.2018 / 18:44
1
answer

Condition for table relationship in laravel

I have the following tables of my system, products, provider and product_provider, have the following structures: Schema::create('products', function(Blueprint $table) { $table->increments('id'); $table->string('code_...
asked by 23.06.2018 / 19:24
1
answer

Laravel Error count () laravel / datatables 5.2 PHP -v 7.2

The following error with datatables: Function:     
asked by 27.06.2018 / 01:20