Support the ongoing development of Laravel.io →

4,311 Threads

Eloquent Model outside Laravel, updating/deleting not working

Hi everyone, I'm using the Eloquent module outside of Laravel in this way (with sql server) // Compo...

0 Likes
4 Replies

Polymorphic relationship listing

I decided to test out polymorphic relationships and of course, I got stuck at the beginning. I want...

0 Likes
0 Replies

Model events not firing when saving model returned from cache

So I'm trying to bake automatic caching into some of my models. I use ardent for validation, so I've...

0 Likes
2 Replies
Solved

syntax error in user model - dynamic table names

Hi Guys I am trying to set it up so that my user model accesses a different table depending on which...

0 Likes
0 Replies
posted 10 years ago

belongsTo - parenthesis or no parenthesis??

Hi. I am a little confused sometimes when using the relations in Eloquent. Can you help me? I have i...

0 Likes
2 Replies
posted 10 years ago

Strange difference between laravel timestamps and real time...

Hi! I'am using simple timestamp fields 'created_at' and 'updated_at' in my model. When i create a ne...

0 Likes
2 Replies
Solved

"Trying to get property of non-object" error getting data from foreign table

My goal is to create a select list in a create.blade.php view. I'm not getting any errors with the D...

0 Likes
2 Replies
Solved

Multiple forms, same page, common fields

Hey, so I have two forms on the same page, and these forms have common field names. Since I'll have...

0 Likes
0 Replies

Access Last Modified Entry for User in pivot table

Hi everbody. I have a pivot table for a many-to-many relation between a User and a Recipe. So a user...

0 Likes
0 Replies

Eloquent query for Many to Many relationships

I have a table Roles and another table Menus with a pivot table Menu_Role. To build up the many to m...

0 Likes
3 Replies
Solved

Create dynamic select dropdown list with laravel 4

Hi all, i'm new lover of laravel, and i develop an application for archive the marks and model of co...

0 Likes
0 Replies

Eloquent Dynamic Get-Mutators

Hi there, I'm relativly new to laravel and it seems to me a framework that solves all my problems an...

0 Likes
1 Replies
Solved

Relationship updating and/or creating with dynamic forms

Hi I have a relatioship between client and phones. Using an array name in the form I managed to save...

0 Likes
1 Replies

Get last id of new inserted model

Hello, i am very new on Laravel and i ran into a serious problem getting the last id of the current...

0 Likes
0 Replies
posted 10 years ago

Models extending Models

Hello, I want to know how I can describe "is-a" relationships with Eloquent models. Exampl...

0 Likes
2 Replies
Solved

Querying multiple relations with Eloquent

Hi everyone, I'm now stuck for hours and I just can't find out the solution. I've got several tables...

0 Likes
0 Replies

[SOLVED]Query not matching the right IDs. How to specify?

Hi, I'm building an application where you can create your own lessons. A lesson has many slides and...

0 Likes
0 Replies

Form model binding - encode part into json or add seperate table

So i'm developing an application where parts of the form have data which are meant to populate other...

0 Likes
0 Replies

sync models without id's

Hi, I have model timesheetweek which has many (7) timesheetdays. On a view I can dynamicly add sever...

0 Likes
1 Replies
posted 10 years ago

Searching polymorphic relationships

I am trying to return records that have a specific value in a related model connected via a polymorp...

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