Support the ongoing development of Laravel.io →

4,586 Threads

Create migration hanging on "Generating Optimized Class Loader"

Hi, I'm just starting out with Laravel and managed to get Vagrant/Virtualbox working on my Windows 7...

0 Likes
0 Replies

Weakness of whereRaw: Expression should be enclosed in ( ) automatically

Example resulting in wrong result (is used for a scope-Method): return $query->whereRaw(<<&...

0 Likes
0 Replies

Retrieve a model with selected column(s) only, then update one of those columns?

In one of my controller-functions I retrieve a model: $user=User::where('token',$token)->first();...

0 Likes
1 Replies

UTC timezone for the app/db but EST timezone for the log file?

I have my application timezone set to UTC so that I can store the date/time in UTC in the mysql data...

0 Likes
6 Replies
Solved

Searching many-to-many relationships

Hello folks. I am in need of a little direction on setting up a query on a many-to-many relationsh...

0 Likes
14 Replies
Solved

Best method to apply filter after a read event Model::find(xx)->toArray(); ??

In one of my project, I'd like to output a json value from my mysql table immediately to array when...

0 Likes
0 Replies
posted 9 years ago

How to work with relationships ?

I've created something like laraval.io. That's my table: Schema::create('forum', function(Blueprint...

0 Likes
2 Replies
Solved

Update view when database is updated

Hi! I'm a student and new to Frameworks and Laravel. I was wondering if Laravel 4.X supports dynamic...

0 Likes
2 Replies

Queries based in a previous result

Hi guys, I'm fairly new to Laravel, I'm designing an application which will have an API which return...

0 Likes
2 Replies
Solved

Query builder with complicated inner selects and joins

I have been trying to get this query working using Query Builder. Still haven't been able to get a w...

0 Likes
2 Replies

Pagination for a feed-like resource

Hi guys! I’m currently building an json API to be consumed mostly by an mobile app. I have been scra...

0 Likes
2 Replies

Returning results from repositories - best practices.

I've been exploring the use of the repository pattern in a new project by using interfaces and eloqu...

0 Likes
0 Replies

DB versus Eloquent execution time comparison

I've inherited an application that I'm supposed to "fix" from prior development and I noti...

0 Likes
0 Replies

Laravel Unknown formatter “prefix” error after 4.1.26 update whilst re-seeding

After following the steps for the 4.1.26 upgrade on Laravel, when I try to re-migrate and re-seed th...

0 Likes
0 Replies

Something wrong with this Elloquent Query... Help

Hi, I'm trying to run the following query but it's not returning anything ... any idea why? $comment...

0 Likes
7 Replies
Solved

eageer loaded->eager loaded model not in the object.

Hello everyone, In my database I have two tables: Users and Notes An User has many notes and every n...

0 Likes
4 Replies
Solved

How to get a model from a package ?

Hi all, How do I reuse a model I created in a package right in the root application ? Thanks :-)

0 Likes
4 Replies
Solved

using many to many primary id as foreign key

categories id, name products id, name products_categories id, product_id, category_id cards id, prod...

0 Likes
0 Replies

another eager loading question

i have a category with many products with many pictures This returns all products for a category wit...

0 Likes
1 Replies
Solved

Delete relations/child relations without CASCADE

I have the following models (example!). When deleting a tutorial I'm expecting the 'deleted' method...

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.