Questions tagged as 'laravel'

1
answer

Hide fields depending on the value in a list

I'm working laravel 5.5 I have this list on my form, The values shown are PHYSICAL and VIRTUAL: {!! Form::mySelect('id_uso', 'Uso', App\Usos::pluck('nombre', 'id')->toArray(), null, ['class'=>'chosen']) !!} and I would like if the...
asked by 15.08.2018 / 19:05
2
answers

Drop-down list with required value Laravel 5.5

I'm working on laravel 5.5 I have these lists: {!! Form::mySelect('id_uso', 'Uso', [0 => 'Escoge una opción'] + App\Usos::pluck('nombre', 'id')->toArray(), null,...
asked by 16.08.2018 / 19:00
1
answer

Change function of Policies

I am trying to modify the Policies function that is currently this: public function pass(User $user, Product $product) { return $user->id == $product->user_id; } Let's see if I explain myself well .. I have some products that when...
asked by 19.10.2018 / 11:55
2
answers

Error SSL certificate deploy with heroku and laravel

I have a heroku account, I have SSL certificate errors, chrome shows me the following. Thanks for your help.     
asked by 14.09.2018 / 18:07
1
answer

Integrate sdk payu laravel

in the payu page there is a sdk package to integrate in my laravel 5.6 but I do not know how or where to store it.     
asked by 04.08.2018 / 22:02
2
answers

Pass a variable with unique value to another class

I have two classes class class1 extends Controller { public function fun 1($xxxxxx){ $sCliente = new Client; $sCliente->xxxx = $oData->xxx->id; $sCliente->name = xxx->fullName;...
asked by 12.08.2018 / 00:55
1
answer

Laravel create a multidimensional array

I have a query in mysql that returns a row of records like this, the first field is the marca and the second the modelo , what I try to do with PHP is to mount an array with the following structure to pass it in view of blade grou...
asked by 01.08.2018 / 15:01
1
answer

Cumulate in column - could not be converted to int

I have the following code in a controller: $total = DB::table('pedidos')->where('idUSUARIOS', $usuario) ->orWhere('ESTADO','P') ->pluck('TOTAL'); $precio=$request->get('p...
asked by 12.07.2018 / 13:05
1
answer

In chart.js print graphics in a csv or Excel

Hello colleagues, I am trying to print my graphic in an excel (xlsx or csv) the problem is that I have only found that only the data of the table is printed but not the graph as such. So I would like to know if there is any way or I have to use...
asked by 11.07.2018 / 18:52
1
answer

Doubt of mailchimp and nztim / mailchimp

I am trying to use mailchimp in Laravel and a github repository to facilitate it. But when I send the form I get the following error:    Non-static method NZTim \ Mailchimp \ Mailchimp :: check () should not be   called statically publ...
asked by 06.07.2018 / 06:59