Support the ongoing development of Laravel.io →

4,311 Threads

posted 10 years ago

Polymorphic issue morphOne

First of all I using Laravel 4.3.. When I run this code: $user = new User; $user->...

0 Likes
2 Replies
Solved

Doing something to a value that is in db, before querying it.

Now I have a filter that works something like this: $property = new Property(); if($data['type']) {...

0 Likes
6 Replies

Saving models (serialize)

Hi, sometimes I fetch Models from the db and I'd like to make them available in further requests. Ho...

0 Likes
6 Replies

Class for Calculations

Hi everyone, I'm working on a model for golfstatistics. So I have a model called round (foreach roun...

0 Likes
3 Replies
posted 9 years ago

Eloquent eager loading without appends attributes

Hello, I am retrieving records with Eloquent and eager loading some relations specifying which colum...

0 Likes
2 Replies
Solved
posted 9 years ago

one to many relationship on pivot table

Hello everyone, I've been struggling with the following problem. Hopefully someone can help me out !...

0 Likes
0 Replies
posted 9 years ago

Create model and load with data from non-db source

Hi, I currently have a mechanism that allows me to build list pages with a grid that displays data v...

0 Likes
4 Replies

Is this a bug or am I just doing it wrong?

$owner = Owner::with('cars.carParts')->where('id', "=", $ownerID)->first(); $owner-...

0 Likes
6 Replies

Relationship returns NULL.

Hello guys, I have a problem with relationships...I set everything up but my relationship returns NU...

0 Likes
3 Replies
Solved

created_at and updated_at values not set when seeding from csv

I am using this code to seed my table from a csv file, the table was created with migration and has...

0 Likes
5 Replies
Solved

Save Collection to database

I feel like this might be a stupid question, and one that shouldn't allude me. I've done some searc...

0 Likes
2 Replies
Solved

all of a sudden published_at column is all zeros

I'm at the 11th video in Laracasts and all of a sudden my app starts acting up. The published_at col...

0 Likes
0 Replies

Many to Many relation issue

Hi guys. I have 3 tables. user, theme and theme_user. Its because I need a many to many relationship...

0 Likes
5 Replies

[Package] Larasearch: elasticsearch enabled models

This is a package to inject Elasticsearch functionality directly into Eloquent models. I've tried to...

0 Likes
2 Replies

Query builder with remember/rememberForever and paginate

I am using paginater with cache when building the query like this: $comments = Comment::where('cours...

0 Likes
2 Replies

iOC resolving

HI, Ive got a system that Im building for a advertising company and they sell advertising a Medical...

0 Likes
0 Replies

Ardent like package for Laravel 5?

Dear All, Yesterday I take a look on Laravel 5 (which is already late), been using Laravel 4.2 in th...

0 Likes
3 Replies

Case insensitive search with Eloquent

First of all I know that I can use raw (where) queries but I'm really curious if there is any "...

0 Likes
3 Replies
Solved

Saving Eloquent relationships on data base

I want to make this as simple as possible. Imagine i have a order model from a shopping web site. Th...

0 Likes
1 Replies
Solved
posted 9 years ago

Error Save eloquent model item

Hi all (and sorry for my bad english), I've a little problem with the save function of Eloquent Mode...

0 Likes
4 Replies
Solved

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.