Questions tagged as 'laravel-5'

1
answer

Laravel - Blank Screen

What I need I want to check if a blank Laravel project is working properly on the development server, ie, I just want to see if it loads the view at least, and then I'm going to run some tests. What I did I downloaded and installed Lara...
asked by 06.04.2015 / 21:05
1
answer

Do I need to return the customer name in the View orders?

I am new to Laravel and need to return the client name in the View orders, currently it is only taking the ID Classes class Ordem extends Model { protected $fillable =['id','cliente_id','valor','data','problema',]; public functi...
asked by 25.11.2018 / 00:18
1
answer

Search and bring id of another table

The problem search field is working, but I would like to search for the client name as they are related. search method in controller public function busca(OrdemRequest $request) { $problema = $request->problema; $ordens = Ordem::...
asked by 01.12.2018 / 17:49
3
answers

Laravel - How to page and give Order By

I have this code: $modeloVideo = ModeloVideo::paginate(10); I want to page by 10 and display order by desc (descending order). How to do this query? I tried this way: <?php namespace App\Http\Controllers; use App\Http\Cont...
asked by 19.12.2018 / 16:32
0
answers

how to handle a multiple file upload request and [object FileList]?

I'm trying to upload with multiple files, however the request is sending a string: [object FileList] <file class="btn btn-default" name="fotos_empreendimento" accept=".jpeg,.png,.gif" ng-model="vm.model.fotos_empreendimento"...
asked by 06.12.2018 / 13:31
0
answers

Error adding constraint (General error 1215) - Laravel

I'm trying to create two related tables. When attempting to 'migrate' them, the error is returned: "SQLSTATE [HY000]: General error: 1215 Can not add foreign key constraint (SQL: alter table 'companies' add constraint companies_taxregimeid_forei...
asked by 06.09.2018 / 17:54
0
answers

Search ajax with laravel 5.6 and jquery [closed]

I'm having trouble running a ajax search with laravel, it follows the ajax code of my view: $(document).ready(function () { $('#enviarForm').click(function (e) { e.preventDefault(); var form = $('#filtro').serialize(); $.ajaxS...
asked by 04.07.2018 / 18:12
1
answer

Access Json multidimensional PHP / Laravel

I'm trying to access a multidimensional Json via laravel and I'm not getting the expected result, I need to access phases-> gaming-> date-> 2017-05-13 I'll post the code below to find a solution : My array: Controller.phppublicfunctionind...
asked by 27.06.2018 / 15:10
0
answers

How to add a range of data entry in the database with Laravel?

I'm having the following problem, any button in my project that takes the user to insert some information into the database, if it is pressed multiple times quickly (without giving the page time to update and display the data), it inserts severa...
asked by 17.05.2018 / 15:12
0
answers

Laravel 5.5 Array Diff with bug?

I'm developing in Laravel 5.5 and Php 7.1.9 and I came across the following problem: I have the following Checkboxes screen and when checking any of the fields, arraydiff of Laravel insists on returning the wrong difference valu...
asked by 23.12.2017 / 15:47