Support the ongoing development of Laravel.io →

4,311 Threads

Switching database connections does not work

I have created a new connection in my config.database like; 'mysql' => [ 'driver' => 'mys...

0 Likes
5 Replies
Solved
posted 9 years ago

eager loading eloqent for realtionship tables

Please see the below tables and how to get Member -> donation[]->material by priority where is...

0 Likes
1 Replies
Solved

Entry Relationships with Categories

I have the following table structure in my database. Table Name: tiles Columns: id, tile_name, tile_...

0 Likes
1 Replies
Solved

how populate data from controller to highcharts(line chart)?

Hello, how populate data from controller to highcharts(line chart)? js line chart <script type=&q...

0 Likes
2 Replies

Conditional eager loading

Hi, I've model with fillable column shop_visible. How could I eager load other model where row value...

0 Likes
2 Replies
Solved

paginajtion problem

My page showing this message FatalErrorException in LengthAwarePaginator.php line 126: Access to und...

0 Likes
2 Replies

Model Self Reference

Hi Guys :D I need to reference People model with itself. My reference table has the following column...

0 Likes
0 Replies

Eloquent query limiting fields of a n+1 relation

Hello, I'm having a problem with Eloquent. I want to optimize my request by retrieving only certains...

0 Likes
0 Replies
posted 9 years ago

Auth::user() get relationships

Hi, I am trying to get my users role relations through the Auth::user() function. I have done this b...

0 Likes
5 Replies
posted 9 years ago

eloquent update whereIn

Hi sorry but how can i combine a whereIn, join and an update like : $query = DB::table('tableA'); $q...

0 Likes
0 Replies

Where in Join

Well i tried to post my problem, but the forum mark it like spam (?) so here is my question http://l...

0 Likes
0 Replies

How to trigger method when sync is called?

I have two models tag and post. When i create the tag I assign it like Post::find(1)->tags()->...

0 Likes
2 Replies
posted 9 years ago

Soft Delete in pivot table

Hi all, in the blazoned example of Article-Tags i've the soft delete for the articles. $article->...

0 Likes
0 Replies
posted 9 years ago

Timing issues when use has relationship

Hello everyone, i am facing timing issues when i use has relationship. Specifically I have models 'P...

0 Likes
6 Replies
Solved

How to get most repetitive values with Eloquent?

I have relation many to many (posts and tags) in Eloquent. Is it possible to order tags in the pivot...

0 Likes
1 Replies

Interface to get user info (picture, details etc) that abstracts facebook/twitter/ origin?

Hello, In my site i want to implement a facebook/twitter login and also full sign up option. in my...

0 Likes
0 Replies

Query to pull selected fields

Hello all, Rather new to Laravel 5, I am trying to pull data with its relation and define specific f...

0 Likes
2 Replies

Problem with Advanced Eloquent query.

Hello, Please help me. I am new to laravel 5, I know the basic operation of laravel 5. I want to cre...

0 Likes
0 Replies

Laravel single table inheritance and sync

I'm using simple table inheritance with Laravel (using a plugin like Nanigans/single-table-inheritan...

0 Likes
0 Replies

Getting data from a many to many in laravel 4

In my page I need to view data from a table I have a banners module and that module has a pivot tabl...

0 Likes
3 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.