Support the ongoing development of Laravel.io →

4,311 Threads

Pagination "per page" query var

Hi there, in my application I want to return a paginated list of users. I would also like the number...

0 Likes
1 Replies

Controller that affects all views

I don't know how to name the thread better than that, what I need is this: I have a master blade fil...

0 Likes
10 Replies
Solved

Listify Package on a Pivot Table

I'm trying to use the Listify package on a pivot table. Listify simply manages an integer column pos...

0 Likes
0 Replies

Relationship Query

Is there any place that shows real world examples of Relationship querys and fetching associated dat...

0 Likes
5 Replies

Returning records using withTrashed()

An Owner has many Cars... And in my blade page I have this... {{{$car->Owner->name}}} And tha...

0 Likes
3 Replies

Quick question regarding error handling in restful API

hi, here's the show method of my SiteController, it shows a site resource as a json to any user who...

0 Likes
1 Replies

Trait 'Illuminate\Auth\UserTrait' not found

HI i searched Google but did not find anything about this and i never had this error before in Larav...

0 Likes
0 Replies

Whats the opposite of ->associate() ?

I'm trying to figure out the easiest and most effective way up updating hasMany() and belongsTo() re...

0 Likes
2 Replies

One of my "belongsTo" doesn't work - why?

Hi! Just started using Laravel (4.1.30) for a project at work. So far it's just amazing, totally hoo...

0 Likes
2 Replies
Solved
posted 10 years ago

Accessing overridden Eloquent model method via relationship function

Let's say we have a custom base model (For the purpose of readability let's assume that this has all...

0 Likes
6 Replies

Migration help

I am converting a site with 50+ tables, some have 35+ columns and setting up the controller / views...

0 Likes
2 Replies

How to use foreign keys in Eloqeunt?

How do I go about using foreign keys in eloquent. I am building a forum application, just so I can g...

0 Likes
2 Replies
Solved

Using with() method

Hi, this is my first post. I'm pretty new on Laravel and I've a question about some query I've to do...

0 Likes
2 Replies

id empty after creating new model

Hello! I'm creating new model using the mass assignment: $item = Item::create($itemAttributes); dd($...

0 Likes
1 Replies
Solved

Aggregated count grouped by dates(days)

Hi guys, I have a table with records created per specific action, I am trying to count records per d...

0 Likes
3 Replies
Solved
posted 10 years ago

Eager Load Constraints Bug or am I doing somehing wrong? Laravel 4.2

I'm using this example from the documentation: '$users = User::with(array('posts' => function($qu...

0 Likes
2 Replies
Solved

Table Column Schema to store array or object

What is the schema for the database table to store Array or stdObject in a column ? When I use ->...

0 Likes
5 Replies
Solved

comment ordering problem

Hi all, I have 2 tables: posts and comments. Each post has many comments (one-to-many relationship)....

0 Likes
3 Replies

Set Session MySQL variables when connection is created

I need to call SET SESSION wait_timeout=xx on my Eloquent DB connections after they are (lazily) cre...

0 Likes
1 Replies

I need table to drag&drop&sort row plugin

hello I need table to drag&drop&sort row plugin and save the update tabe in database

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