Support the ongoing development of Laravel.io →

4,314 Threads

Cant access to Models From Views in Package

Hi there I'm working in a package , and for some reason i cant access to models methods from View, f...

0 Likes
2 Replies
posted 10 years ago

$morphClass not used by morphTo()?

So I have MyApp\Posts\Post MyApp\Videos\Video In each I declare a $morphClass of 'Post' and 'Video'...

0 Likes
4 Replies

Problem with routes when passing a variable from a Modal to a web page.

Hi. I'm having an issue when passign a variable from a Modal toa web page. The variable it's not sho...

0 Likes
1 Replies

Repository Responses

Hi everyone, What is your approach for repository methods responses ? returning Eloquent models or...

0 Likes
0 Replies
posted 10 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 10 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 10 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

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.

© 2025 Laravel.io - All rights reserved.