Questions tagged as 'laravel'

1
answer

How does the Front End part work with OAuth 2.0?

I've done all the necessary part of the back end to use OAuth and api already returns the access_token and refresh_token, my question is, what do I need to do on the front end (if possible with examples). Any requests first will have to verif...
asked by 19.01.2018 / 11:23
1
answer

How to make several separate selects with laravel 4.2?

Hello, I need to do a select in a table, but if I do not receive the month by the parameter I must do the SUM method to sum every month if($month != 0){ $dbRegister = tb_data::selectRaw('tb_data.total_points'); }else{...
asked by 26.01.2018 / 15:06
0
answers

Version 5.3 Laravel with php 5

Good afternoon. I use Laravel version 5.0 and one of the requirements of this version is that php has to be greater than or equal to 5.4. So far so good, my php installed is 5.6.32. But I wanted to start using version 5.3 of Laravel and th...
asked by 24.01.2018 / 20:40
0
answers

Install Laravel with Laradock

I just installed docker and consequently laradock, how do I install laravel now? since the composer command does not work     
asked by 15.01.2018 / 15:25
1
answer

Laravel, problem with Float fields

Hello, I'm using Laravel and I need to do a select in a table, I also create a field that brings the result of a function. My select looks like this: return \DB::table("view_pins_ocorrencias") ->select("*", "round(geo({$d...
asked by 17.01.2018 / 17:03
1
answer

Many relationship to many laravel

Well, I've tried to read the documentation and develop this relationship, but I can not really tell you what the user's name is. The database model looks like this: % of% involved App\User App\TipoUser App\UserTipo And in my model i...
asked by 04.05.2017 / 01:45
0
answers

The variable that stores a return only stores the first time of a loop

$campaign->images = array_map(function ($image) use($agencias) { $campaignImage = $this->campaignImageRepository->byImage($image->images_id)->first(); $fileImage = Storage::get($image->path);...
asked by 24.01.2018 / 15:54
1
answer

How to access an image that was to uploads my laravel folder through FIleUpload

I have a form that makes uploads of images, when I upload, the path is saved in the bank by the path field, I recover that image and set it in a array image this.image = data; Now how can I display this im...
asked by 11.01.2018 / 15:53
1
answer

jquery does not work on foreach laravel blade

The jquery script works if you put it out of the foreach, but qd put it inside it does not work and does not show any errors on the console: <div class="box-indicated"> @foreach($list_indicated as $indicated)...
asked by 12.01.2018 / 17:41
0
answers

Recover data for Controller in Laravel

I'm developing a web application with Laravel and on one of my screens I have a Customer and Contact relationship, where a client can have multiple contacts. So in my View I have a method to go adding my contacts to a table. for example: I in...
asked by 26.12.2017 / 17:01