Support the ongoing development of Laravel.io →

4,311 Threads

Need variables

Hi, i have a select: $roles = agegroup::all(); The select delivers an object with data. Now i need t...

0 Likes
2 Replies
Solved

Why Laravel save data more then one record at one time?

I use Laravel Eloquent to save data to table store, but it save more then one record at one time. Wh...

0 Likes
1 Replies

I want to send my table schemas to the front-end using in json format. How can I get that schema?

Do I have to write a raw sql query? Or is there a class in laravel that can do that?

0 Likes
2 Replies
Solved

Models that that don't extend Eloquent

Is it possible to create a model that doesn't extend Eloquent? I have need for some models that don'...

0 Likes
4 Replies

Find items that have a set of associated items through hasMany

I have three tables: Video (id, title) Tag (id, title) Video_Tag (id, video_id, tag_id) <-- join...

0 Likes
3 Replies
Solved

Is it possible to use Confide 4.0 with a User class that extends Ardent?

I have a User class that extends a Base class which extends Ardent. I'm toying with the idea of usin...

0 Likes
1 Replies

Laravel auto date time conversion at model level

Whenever i save any date or time into database i convert it into UTC format and save to database and...

0 Likes
1 Replies
posted 9 years ago

Eager loading constraint and ordering it correctly

I have the following query that returns results fine, but the order of the results isn't alphabetica...

0 Likes
1 Replies
Solved
posted 9 years ago

Using pivot data in Fractal transformers

I have users and workspaces on my project, and an is_invite field on the pivot table to tell when so...

0 Likes
0 Replies

Connect to a remote mongo database

Hello there.. I'm trying to connect on a remote database on mongolab server. I aways get that error:...

0 Likes
1 Replies
posted 10 years ago

Is there a shortcut for syncing one-to-many relationships?

I see the sync function which is really handy for managing pivot table relationships. I'm wondering...

0 Likes
3 Replies
Solved

LeftJoin In mongodb laravel

Hi everyone I have problem with mongodb in laravel i use mongodb 'jenssegers' IN MYSQL : i use sql \...

0 Likes
0 Replies

Using Models for noob

Hi, I'm sure this has been asked a thousand times, but I still can't find much out there. I understa...

0 Likes
1 Replies

Polymorphic, Many to Many relationship. Problems setting up --able table

So I have a tag system, and for each user, they can have many tags, and also posts can have tags, so...

0 Likes
2 Replies
Solved

Rating System Model Relationship

I'm trying to set up my website to support ratings on posts from users. I'm not sure what the best...

0 Likes
5 Replies

How to save Eloquent Model with relations in one go?

When saving a model with relations we do something like this; $ship = new Ship; $ship->name = 'E...

0 Likes
6 Replies

Eloquent "One to Many" to "One to One" Just cant get it to work (with Images)

Hi All what i am trying to do is..... 1 users has many Import REF's and each REF has one document my...

0 Likes
5 Replies

ORM toJson() not returning JSON, but returning SQL statement?!

I am having the following in one of my controller's show($id) method. There is only this line in the...

0 Likes
0 Replies

How to use postgresql ARRAY, JSON fields in Schema Builder

How to use postgresql ARRAY, JSON fields in Schema Builder

0 Likes
2 Replies

Preventing overwriting changes in database.

I have a system for publishing photos. Photos are published in articles. Article is searched based o...

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