Support the ongoing development of Laravel.io →

4,312 Threads

Best practice for validating relationships using Ardent?

I'm working on an application containing log messages and users. The respective models are LogMessag...

0 Likes
0 Replies

Validation inside a mutator/setter

I was reading the following: "Validation should happen within the context of the setter prior t...

0 Likes
0 Replies

While using Eloquent relationships, user id is not saved

Hello I'm learning Laravel 4, and I came up to Eloquent relationships. I have two models, user and g...

0 Likes
2 Replies
Solved

Where does those calls come from?

Hi, I installed php-debugbar and this is the output I get. select * from `pages`133μs256KB3000000005...

0 Likes
2 Replies

Mocks and namespace

Hi I had a few tests, no problem with phpunit execution. I added namespaces to my Models and control...

0 Likes
2 Replies
Solved

Laravel bug or my mistake?

Good night, In this code, i got an error that says that the variable userId doesn't exists when its...

0 Likes
2 Replies
Solved
posted 10 years ago

Help with relationships.

Hi everyone I am having a slight issue with relation ships (honestly I think it's just my thick skul...

0 Likes
2 Replies

Bulk insertions on db table

Hi, I have to insert in a table something like 18000 records. I didn't try to use Eloquent, but usin...

0 Likes
7 Replies
Solved

Load Eloquent from Main View

I'm just in my first laravel project. It has a small blog and uses notifications just like a social...

0 Likes
7 Replies
Solved

one-to-many relationship without actual foreign key in database

I want to mak a one-to-many relationship like in the tutorial. One To Many An example of a one-to-m...

0 Likes
1 Replies
Solved

Handling Unique Short Code Representitives

Lets say I have a list of Status 1 - Pending Submit 2 - Submitted 3 - Extra Images Uploaded 4 - Com...

0 Likes
1 Replies

SQL Storing Searchable Meta Data

I am creating a bug tracking tool for mainly personal/in-house usage. BugSnag is kind of the motivat...

0 Likes
6 Replies

dynamic SEO URL wanted

Hello, I'm a newby with Laravel but I succeed to make pages and route them with a nice URL But I'm d...

0 Likes
3 Replies

SQL where in Eloquent

i realize the question sounds very rudimentary, but coming in from the front end side of development...

0 Likes
2 Replies
Solved

Login Problem

I have database insert for login, But when login correct username & passwors then show it ErrorE...

0 Likes
1 Replies

Trying to understand Migration workflow

At this point I have two files in my migration folder, one to create the table with its columns, and...

0 Likes
3 Replies
Solved
posted 10 years ago

Inserting a related model and missing FK

I have set up two models: User and Survey and defined their relationship in the model. One user may...

0 Likes
5 Replies
Solved

Call to undefined method Illuminate\Database\Query\Builder::firstOrFail()

I have a server running php 5.3.22. When I make a call to an eloquent model I get an error: $email =...

0 Likes
2 Replies

Many To Many Polymorphic Relationship?

Hey guys, I'm trying to figure out if this is the best way to go about this. I have a tv_shows table...

0 Likes
8 Replies
Solved

Use avg() in eloquent for OrderBy

Hi ! I have a lists on articles that I get from a simple Eloquent query Article::where('state', '=',...

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.