Questions tagged as 'laravel'

0
answers

Integer conversion on Controller Laravel

I have the following data in the controller: $sheets = printerChange::select('folhas'); $sheetsNew = printerChange::select('folhasnew'); $sheetsCompare = (int)$sheetsNew; if(!is_null($sheetsCompare > 0)){ $calcSheets->folhasnew = $re...
asked by 05.12.2018 / 14:21
2
answers

Populating database with Eloquent ORM

I have a database with some tables already populated, but now I have to populate the tables that have a foreign key, I'm trying like this: $tamanho = Tamanho::find(2); $genero = Genero::find(1); $categoria = Categoria::find(2); $estampa = Esta...
asked by 07.02.2014 / 16:50
1
answer

Service Validation Package

I am developing a large project with Laravel and need to validate my data. Initially I had planned to use Ardent, but this is not compatible / advisable for anyone using the default repository. So I'll have to do the services validations. Do...
asked by 10.02.2014 / 20:45
2
answers

Get data from a PHP Laravel Object

I am listing the data of a query I made with the following code: $users = DB::table('users') ->join('transportes', 'users.id', '=', 'transportes.user_id') ->join('empresas', 'transportes.id', '=', 'empresas.transporte_id') ->join('...
asked by 25.11.2018 / 13:33
1
answer

Pagination with Eager Loading in Laravel

I'm having a small sorting problem involving paging and Eager Loading. What do I need to do: In a part of my site, I need to bring paged results from a subcategory The subcategory is a child of a category, so I have to display in a t...
asked by 06.02.2014 / 03:39
1
answer

How to queue requisitions for a larivel api?

I have an api made in laravel 5.6, where requests can not be executed simultaneously and are queued to be executed in the requisition order. It's complicated to explain an example, but if anyone can help me I'd like to know how to solve this.  ...
asked by 29.11.2018 / 23:33
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
0
answers

Docker Container Does Not Start

I'm a beginner in Docker and I'm trying to create a development environment with ngix mysql and php using Laradock, I have Docker installed on my machine, I tried to follow the steps in the documentation Terminal Log $ docker-compose up -d...
asked by 06.12.2018 / 17:20
0
answers

Laravel (blade) @lang on Vue components

Recently I started using VueJs with Laravel and one of the first problems I came up with was how to use the Laravel translations (from the resource/lang folder) in the Vue Components because in the Blade it is simply to use @lang, or @cho...
asked by 23.11.2018 / 17:45
1
answer

Using Foreign Keys Laravel 5.6

Good afternoon everyone. I created a migration "clients" in the laravel that receives 3 foreign keys coming from entities: modalities, requests and locals. In my view when registering a client and viewing in phpmyadmin I see that all the data...
asked by 20.09.2018 / 20:45