Support the ongoing development of Laravel.io →

4,311 Threads

Laravel Database connection problem

Hi, Facing problem with database connection with Laravel any version and using FileMaker Server13 as...

0 Likes
0 Replies

Dynamic Reports Generation in laravel

I'm trying to develop a custom reports generation for my application, in which the user will dynamic...

0 Likes
0 Replies

Insert Relation

Hy. I have a problem with Inserting eloquent laravel relation. Ok, Point table : ## product ## id na...

0 Likes
0 Replies

How to easily define relationships of a pivot table where the third column is a foreign key to another table.

I am new to laravel 5. I have been working on a client app where I have setup a relationship like so...

0 Likes
0 Replies

Php Artisan Tinker intermittently works and then does not in Laravel 5.1

I have an application in which I have been able to create users, assign roles and so on - both on th...

0 Likes
0 Replies

Laravel 5.1 / Eloquent: Polymorphic morphMany not finding results

CONTEXT Framework Laravel 5.1 Eloquent Fractal Problem morphMany is not returning any results. We...

0 Likes
2 Replies
Solved

Can I use scope?

Hi, I have this on every method on my controller: if(Auth::user()->cannot('see_all')) $post=...

0 Likes
2 Replies

Model inserted with empty strings instead of null values

I am using Laravel 5.1.24. I have a simple 'Product' table created in db (MySQL5.5) like this: CREAT...

0 Likes
0 Replies
0 Likes
3 Replies
Solved

Laravel 5: fetch data from data base and display it

hi im with laravel 5.1 im trying to fetch data from table. categorys and products categorys has foll...

0 Likes
1 Replies
posted 8 years ago

setRelation() usage

Hi all, I'm trying to create a relation (hasOne profile) outside of the User model. I noticed in the...

0 Likes
0 Replies

Laravel 5 Undefined property: Illuminate\Database\Eloquent\Relations\HasMany::$category_name

I am developing a product and category relationship. where i wanted to show to which category, a pro...

0 Likes
3 Replies

convert sql to eloquent query

can someone help me convert this sql query in eloquent query $q = 'select c.id, c.created_at, c....

0 Likes
2 Replies
posted 8 years ago

How to filter a relationship result?

Hello! I have a model Event, User and Roles. An Event can have many users. When I call Event::find(1...

0 Likes
2 Replies
Solved

How to get some specific datas.

Heya, i'm a newbie with Laravel,i'm trying to show some specific informations from my database, but...

0 Likes
2 Replies

get only specified columns from the join table

First I have this 'User' model <?php namespace App; use Illuminate\Auth\Authenticata...

0 Likes
1 Replies

Fetch Collection with Condition on distant Relationship

I"ve following relationships: Heartbeat belongs to Entity Entity belongs to Branch Branch belo...

0 Likes
0 Replies

Eloquent ORM how to avoid duplicate conditions

How can i prevent duplicate Shop data(shop_name)? when I dd($data) it return null; ** Database: ** |...

0 Likes
1 Replies

Ignore $with from eloquent

Hey, I have one model where i set $with variable to always take a relationship. But i have one case...

0 Likes
2 Replies

Make an Inner Join with two different tables

Hi ! I have a table named professor_turma, which has some importante keys: ´cod_professor, cod_disci...

0 Likes
0 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.