Support the ongoing development of Laravel.io →

4,314 Threads

Laravel does not see routes just the '/' one

I have just installed laravel 5 on my wamp server and the '/' route works perfect but other ones doe...

0 Likes
7 Replies

Cannot add a Foreign Key to table

I created two tables and wanted to use the following command to create a foreign key $table->fore...

0 Likes
3 Replies

Question about Eloquent relations

Hi all! Tell me please what should I do if I have a task like this: I have a chatboard with messages...

0 Likes
1 Replies
Solved

Scrutinizer marks Eloquent save() as wrong

I'm trying to use Eloquent in one of my project works very fine. But the scrutinizer-ci tool marks t...

0 Likes
2 Replies
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

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.