Questions tagged as 'laravel'

1
answer

Many zeros in the modal

I created a test modal in the attempt to return the value of the id to the view and since it has more than 5000 records in the query, I do not know what happens .. but it prints one million zeros in the modal, does anyone know the can it be?...
asked by 31.08.2017 / 22:30
1
answer

Method of Payment divided between accounts

I am developing an E-commerce in which it will have several brands, each brand will have its proper integration with PagSeguro, the question in question is how to separate the values of each brand at the end of the purchase and only bring a purc...
asked by 22.08.2017 / 01:44
1
answer

How to pick up a route response with JS

The route is configured this way: Route::get('database/getClubes', 'DataBase@getClubes'); The Controller looks like this: public function getClubes() { return ClubesDB::getClubes(); } The Model looks like this: public static func...
asked by 09.08.2017 / 21:01
1
answer

Update amount in PivotTable with Ajax

I have a shopping cart that modifies the quantity through ajax by the remove and adiciona functions. I have the function atualizaQtd which by ajax returns the current amount. How could I insert this new quantity into td...
asked by 02.09.2017 / 20:49
1
answer

Returning external Array when taking data with Laravel

I have a column called clube and in a row it has the following {"clube":["Santos"]} , using that form for the data $clubes = Socios::where('socio', $socio)->select('clube')->get(); It returns me this way [{"clube":"{"c...
asked by 12.08.2017 / 00:08
1
answer

How to do CRUD for the model in Laravel?

We can do in controller method save() o find($id) o update() and create() . How could I do that Model have this responsibility ?     
asked by 06.08.2017 / 10:02
1
answer

How do I solve this method create problem in Laravel

Well, I have a form where it contains an html input of an image. When I send the form to the Control, I do the image processing, taking its name and uploading it to the image directory. But when I look in the bank, the image name is not correct....
asked by 04.08.2017 / 18:13
1
answer

How do I send a bank query to a View in Laravel? [closed]

I have a model (table) called Member. I want to do the id count that exists in the bank. Well I did with Member :: Count ('id'). It returns me everything nice and the total id I have on the table. More when I play the view it gives an error: Spe...
asked by 06.08.2017 / 04:08
1
answer

Laravel 5.4: AJAX request using route with JS variable?

I need to use a Laravel route within the AJAX request code. The way I mounted it does not work, but it does not work. I believe the call of the variable ( servico ) is wrong, because I manually set a number like this: {{ route('getE...
asked by 05.08.2017 / 15:22
1
answer

Docker Laravel Map folder

Good afternoon. I'm trying to create a development environment with sublime, docker, laravel. The image I downloaded from the hub docker, comes with debian, php, laravel already isntalados. The host is windows. But when I execute this command...
asked by 13.09.2017 / 20:54