Questions tagged as 'php'

1
answer

Laravel Form, Select from a Foreign Key

Table Products:    Primary Key- > product_code Movements Table:    Primary Key- > code_movement / Foreign Key- > product_code These would be the two tables to relate, and I use the Laravel collective I'm supposed...
asked by 07.09.2017 / 09:02
3
answers

Relationship tables laravel

Good morning I have 2 tables clients and companies, in the second table I am trying to create the relationship but I get an error with the foreign key.    Illuminate \ Database \ QueryException: SQLSTATE [HY000]: General error:   1005 Can...
asked by 03.01.2019 / 03:09
1
answer

"Route [demanda.estado.update] not defined" but exists in the resource controller, Laravel 5.4

StateController public function edit($id) { $estado=Estado::findOrFail($id); return view("demandas.estado.edit",["estado"=>Estado::findOrFail($id)]); } public function update(EstadoFormRequest $...
asked by 28.09.2017 / 15:48
2
answers

pass values by ajax error

I have a routine to update the status and balance of a document, this is the jquery code $("#invBtnPay").on("click", function (event) { alertify.confirm("Pagar Factura", "El Saldo de la Factura es de $" + $("#idt_saldo").text(),...
asked by 09.04.2018 / 15:14
1
answer

the call to .done in ajax is not completed

I have the following function function deleteItem(item_id) { var invoiceData = { 'idt_id': item_id, 'inv_id': $('#inv_id').val(), 'inv_number': $('#inv_number').text(), }; $.ajax({ type: 'GET',...
asked by 11.04.2018 / 16:08
1
answer

PHP Warning: date (): It is not safe to rely on the system's timezone settings

Greeting This error comes to me in my EC2 instance of Centos.    PHP Warning: date (): It is not safe to rely on the system's timezone   settings.       You are required to use the date.timezone setting or the   date_default_timezone_se...
asked by 11.04.2018 / 17:10
1
answer

Set default values for route parameters in laravel

I am trying to make an api rest for the paging of a data table (daily bread when in CRUD), but I want to make it possible to put default values in the parameters that determine the current page and the number of items to return if not specified...
asked by 09.04.2018 / 16:36
1
answer

Problem when shortening multiple URLs with TinyURL

I want to get several URLs shortened simultaneously, the next problem is that when I shorten them, the first URL is shortened correctly, but the others are shown like this: tinyurl.com/__urlqueacortas.url and I get an error because it is...
asked by 07.07.2017 / 04:20
1
answer

Problem in pairing Web Service response

I have not been able to receive the answer given to me by a Web Service for several days; My code is as follows: <?php $params = array('NitProveedor' => '860000896', 'baseDatos' => '1',...
asked by 17.08.2017 / 14:19
1
answer

How do I solve problems with laravel 5.2 page?

I'm doing a query with laravel, and when I paginate, I get an error that says - The paging method does not exist (Method paginate does not exist.) On the one hand in the controller, I call the query and page as follows: $img_ventass = Img_v...
asked by 07.07.2017 / 07:27