Questions tagged as 'laravel-eloquent'

1
answer

Error in making listing

Trying to get property of non-object: @foreach($civis as $civil) <tr> <td>01</td> <td>{{$civil->matricula}}</td> <td>{{$civil...
asked by 18.12.2017 / 17:15
1
answer

Error trying to make a belongsToMany relationship in Laravel

I'm trying to make a belongsToMany relationship in my Model but it's bringing the error:    QueryException       SQLSTATE [42S02]: Base table or view not found: 1146 Table 'api.codigo' does not exist (SQL: select sequenciaaprovacaos . *...
asked by 11.12.2017 / 21:34
1
answer

Query for multi-table search

I need to fetch the data from a process table, and from 2 other tables one of process authors and defendants, the question is how to search in a grouped way that I can go through with foreach to fill a report, I'm using Laravel, follows list of...
asked by 31.10.2017 / 17:13
1
answer

Pagination in relation to Laravel

Is there a way to do pagination in Laravel in hasMany() method for relationships between models in Laravel?     
asked by 23.10.2017 / 12:33
1
answer

How to get all users logged in at the moment in Laravel 5.4

I need to loop with all the users who are currently logged into the system. How could I do that? I know that with auth()->check() we can know if a user is logged in. Plus I wanted to know everyone who is logged in right now. Is there a...
asked by 19.10.2017 / 23:34
1
answer

Call stored procedure on laravel using SQL Server with OUTPUT

I'm trying to call a stored procedure by Laravel 5.5 but I can not. I'm using SQL Server. Follow the stored procedure: declare @CodigoRet int exec Generator 'LancaContaContabil', @Codigo = @CodigoRet output Select @CodigoRet I research...
asked by 27.09.2017 / 15:26
2
answers

PHP - Laravel - Send a data inserted in the bank to another view

I've read about this, but I still can not solve my problem. is as follows, I have a separate Laravel view to register user. Ai in theory should redirect to another view where it will provide other user data. But I am not able to send the id o...
asked by 10.09.2017 / 18:14
0
answers

What is the right way to pass variables to the Create Laravel page

I'm doing my TCC and I have a pre-registration page, where information of type [nome, email, senha, token] and it saves in the pre_register table. Then a email is sent to the person with a link, it contains the following:...
asked by 29.08.2017 / 01:14
1
answer

Many to many relationship with id of type UUID Laravel 5.4 Eloquent ORM

I'm following the Laravel documentation to make this relationship with the id's type. In the methods of the relationship I specified the pivot table and the IDS fields, however I was debugging the tinker to see if it was really working and it re...
asked by 04.08.2017 / 15:52
0
answers

Working with more than one table in Laravel

Good morning. I'm trying to use 2 mysql tables, as if they were 2 schemas, but I'm not getting it, I've tried the examples: link Multiple schemas in the Laravel database 5 More did not work, can you help me? File .env...
asked by 08.08.2017 / 15:16