Questions tagged as 'laravel'

1
answer

Transform array records into another multidimensional array

I want to transform this array: array:6 [ 0 => { "saldo": "-257,21" "id_mes": 1 "ano": "2018" } 1 => { "saldo": "-257,21" "id_mes": 2 "ano": "2018" } 2 => { "saldo": "0" "id_mes": 1 "ano"...
asked by 16.02.2018 / 13:21
1
answer

Deploy in Projects Laravel

Hello After a project is ready in Laravel, which folders and files are really useful for uploading to the server? Currently I use everything and I find it kind of heavy.     
asked by 18.02.2018 / 01:44
1
answer

How to organize project versions in GitHub?

I have an old project that was written in Laravel 5.3 , I recently rewrote all the code using the 5.5 My question is how to organize this in Github, currently the master branch supports my project based on Laravel 5.3, locally I have the pr...
asked by 23.01.2018 / 14:38
1
answer

Perform a related table search in Laravel and page

I would like to search all the people of a given class based on the class code using Laravel: And soon after page, to make a list. Student public function turmas() { return $this->belongsToMany(Turma::class,'turma_classe', 'tur...
asked by 23.01.2018 / 13:44
2
answers

Upload images webp [closed]

I would like to do something similar to the following link with the images on my site, using the webp format: example on this site When I try to save the image through this link, through Chrome, it saves in webp format. If I try to save...
asked by 08.02.2018 / 19:57
1
answer

Date formatting problem laravel 5.5

I'm trying to resolve a date formatting problem before sending it to the database but I'm not succeeding! I'm using in a form the datapicker plugin, as shown in the image below: In my Controller I have this line of code: $agenda_ex...
asked by 03.02.2018 / 18:11
2
answers

(bootstrap and php) How to create a row every 3 bank records

People, I have a template that has the following: <div class="row"> <!-- INICIO --> <div class="col-md-4"> Aqui vem uma imagem e o nome de um imóvel </div> </div>...
asked by 27.12.2017 / 18:57
1
answer

how to configure routes in laravel 5.3?

I'm studying more on my own Laravel, but I already looked at his documentation on routes and I can not make it work here. I did a little test: Route::get('/', function () { return view('welcome'); }); Route::get('teste', function() {...
asked by 26.12.2017 / 23:39
1
answer

Picking up the contents of an image I made from my folder

Good I have a form that uploads images, these images are played in the directory: uploads/{idcampaign}/images/ In my PHP controller how do I access this image and get its contents? public function get($id) { /** @var Uplo...
asked by 11.01.2018 / 19:37
1
answer

After laravel validation fails, choose a select option

Hello everyone, I have two combos: one states and one cities. When I choose a state, I search cities via ajax, as follows: $('#estados').on('change', function(e){ console.log(e); var id = e.target.value; /* busca as cidades de...
asked by 21.12.2017 / 22:37