Support the ongoing development of Laravel.io →

4,599 Threads

is remember keyword enough for caching paginated query results

Hi all, I have the following query: $posts = Post::where('category_id', '=', $category->id)...

0 Likes
1 Replies

Storing into database a model that contains multiple models which might be of different type.

Hello guys I have this problem. I have a Form that contains several pages (think a multiple step pol...

0 Likes
3 Replies
posted 10 years ago

List of perticular date entries

Hi, How do i list the table values which are stored on today date using the created at

0 Likes
3 Replies
Solved

Search child relationship

I feel this may be a simple question; but I can't, for the life of me, figure this out. I'm relative...

0 Likes
1 Replies
Solved

Multiple relationships to the same table

I am experimenting with using Laravel for a new project and got stuck at the model definition stage....

0 Likes
1 Replies
Solved

Environment variables are not being detected by Laravel Application

I'm trying to deploy my app on google cloud but having some trouble. In my app.yaml i have env_v...

0 Likes
5 Replies

getDates() and getDateFormat() conflict

I am saving created_at and updated_at as Unix timestamp in DB. I have overridden my getDateFormat()...

0 Likes
0 Replies

Combining Eloquent libraries

Hey guys, I'm having a small problem regarding the combination of multiple eloquent based libraries....

0 Likes
0 Replies

Many to Many Polymorphic relationship catch-all method?

Ok so I have a certifications table which can have many employees or materials. Also the employees a...

0 Likes
3 Replies

migration files from existing tables?

Is there a way to create migration files for existing tables quickly?

0 Likes
1 Replies
posted 10 years ago

Check if row exists

Should this work to see if a row does or doesn't exist? $exists = DB::table('roles')->where('nam...

0 Likes
3 Replies
Solved

Get an user who has specific relationships

Hi. I have a user with countries relationship. (hasMany) user_id 1 country_id 1 user_id 1 country_i...

0 Likes
2 Replies
Solved

Many to Many eager loading strange behaviour

Hello all, I've been struggling with a strange behaviour when trying to load partial information fro...

0 Likes
1 Replies

Ordering by the count of a related table result

The setup. I have Posts items that users can favourite. I show the count of how many people have fav...

0 Likes
4 Replies
Solved
posted 10 years ago

How specify columns with using ::with() ?

Hi everyone! I try this code: $urls = Url::with(['user' => function($query){ /** @var $query \I...

0 Likes
3 Replies
Solved

Paginate Encrypted Data

My DB is like 2000 records, the info is encrypted, using Crypt in my model... /* NAME*/ public func...

0 Likes
0 Replies

Adding Column to DB Table

I have an existing blog application, and I would like to add a way to have different types of blog p...

0 Likes
1 Replies

use laravel with record locking

I have a multi-tenant DB that I need to manage incrementing invoice numbers per tenant. It's import...

0 Likes
0 Replies

Eloquent relation

Hello ! I have two models, who have a one-to-many relationship. 1 - a company has many initiators 2...

0 Likes
3 Replies
Solved

can we find a row based on foreign key??

Suppose we have two tables abc and def. id is primary key of both tables. abc_id is foreign key of d...

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