Support the ongoing development of Laravel.io →

4,311 Threads

posted 9 years ago

Eloquent relations - need confirmation

Hi, lets imagine i have a Eloquent model "Picture" (table pictures), with : -id -path And...

0 Likes
5 Replies

verify model attach

I am attaching model A to model B as per a defined Many-to-Many relationship. Such as $user->role...

0 Likes
1 Replies

Reusing Code

I have a list of Australian states in which I want to make a case switch method as the state are com...

0 Likes
1 Replies
posted 9 years ago

how count and list records which are in the same multiple relations as the selected model

I have a number of Writers, who belong to organizations. Both organizations and writers belong to th...

0 Likes
0 Replies

Defining relationships among database tables with Eloquent

In this article we'll see how to define even complex relationships among database tables with Eloque...

0 Likes
0 Replies

Problem Using Laravel with jquery autocomplete

Hi, can you help mw with this treat please: https://stackoverflow.com/questions/27742097/jquery-auto...

0 Likes
3 Replies
Solved

orWhere('column', 'operator', 'value') does not handle NULL

I am using several scope functions in an eloquent model to retrieve data, and in one of the function...

0 Likes
1 Replies

Call to undefined method

Hello. I'm trying to get the view for my property page to load and I'm meeting the following error....

0 Likes
1 Replies

SoftDeletingTrait

Hey everyone, I was checking at SoftDeletingTrait and SoftDeletingScope and I saw that there are sta...

0 Likes
3 Replies

typeahead.js and Laravel

Anyone has any experience with the new typeahead.js and bloodhound? What is the best methods to inte...

0 Likes
3 Replies

Working code stopped working. Is this a thing?

Hi everyone, Last night I was happily coding and satisfied with the result to come back to it 24 hou...

0 Likes
4 Replies
Solved

Prevent strange "remember_token" on creation of every Model?

Hi there, it seems that my Laravel Setup (4.2.16) tries to fill a remember_token column on creation...

0 Likes
0 Replies

ORM value '0' set to NULL on save

Hey there, Ive got a model with a value 0, when i DD the model the original and attributes value's a...

sglara liked this thread

1 Likes
5 Replies

Laravel 3.2.14 generates a wrong query

Hello! Today i needed to update an old script, look at that: Model: class Match extends Eloquent {...

0 Likes
2 Replies

Active Record, Packages and Integration Testing?

I have been struggling with the issue of Integration Testing within packages for some time. Basicall...

0 Likes
0 Replies
posted 9 years ago

Accessing constrained relationship is re-querying the relationship

behaviour is detailed at http://laravel.io/bin/d9vEP (model classes are at the bottom) Basically, I...

0 Likes
2 Replies

Routing To Multiple tables

I'm just learning Laravel so this question may seem simple but not to me. Example: I have a view wit...

0 Likes
0 Replies

Model insert fail with MSSQL + trigger

I have one particular Eloquent model that is giving us seemingly random problems with inserting. Tha...

0 Likes
0 Replies

[SOLVED] Many-to-Many relationship - save() trows Integrity constraint violation

Hello, before to explane the problem, I try to make clear the situation of my system. I'll indicate...

deepakjd liked this thread

1 Likes
0 Replies

static::create vs DB:insert.

If I use the following code snippet in my model it inserts the data: $fillable = ['email', 'username...

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.