Support the ongoing development of Laravel.io →

991 Threads

posted 10 years ago

General Performance Expectations, loading 8 rows using ->all() takes ~1second

Hello Guys and Girls. I am currently developing a small web-app using laravel. In general, I am very...

0 Likes
3 Replies
Solved

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

Application cant determine owner of a model

Hi everyone :) I'm having a problem with determining a owner of a model. The application is supposed...

0 Likes
1 Replies
Solved

Problem of model functions since the last composer update

Hi, I have update the composer.phar today, and since that, all the methods in the model files don't...

0 Likes
8 Replies
Solved

Using a relationship query on one table that has two columns to match?

I have two tables. One is People. The second is Files. Files contains all uploaded files through an...

0 Likes
3 Replies
Solved

How to reference this object's "belongsTo" user?

In my Car class I have public function user() { return $this->belongsTo('User'); } public fu...

0 Likes
9 Replies
Solved

Handle a cart for an e-commerce website

Hi, I am trying to create a cart for my e commerce website. For a single user, it's simple, session...

0 Likes
13 Replies
Solved

HipHop (and / or NGINX) and Saving new Records

Hi there, This was a different thread, but incorrectly titled. Anyway, here's the problem: On our d...

0 Likes
3 Replies
Solved

Dynamic 'where()' for a filter

I've looked around for a tutorial or a best practice for implementing a filter for results. I would...

0 Likes
5 Replies
Solved

Categorized output

Hi folks, I've got a table called "customers" and a table called "projects". Eve...

0 Likes
2 Replies
Solved

POST & GET / Route Design

How should I manage my application with POST & GET After i POST do i RETURN View::Make or do i R...

0 Likes
1 Replies
Solved

authenticate from second database

I have a form with a 'name' textfield. When i press send laravel checks if the username exists. If s...

0 Likes
2 Replies
Solved
posted 10 years ago

Use existing database in Laravel 4

Hi! I have already created a mySQL database in phpmyAdmin, so I don't really want to use the the Sch...

0 Likes
2 Replies
Solved

Calling model method from controller

I have this in my car.php model public function bySortOrder() { return $this->orderBy('so...

0 Likes
3 Replies
Solved

Help with relationship

Sorry for my english, is not very good. I have a User model and I have a Post model. two models have...

0 Likes
2 Replies
Solved

Question about relationship.

Guys, good morning. Question about relationship. In this query it brings me a student and two servic...

0 Likes
2 Replies
Solved

Eager Loading and Relations.[URGENT]

I'm trying to relate a user model and a comments model. My user model has the following code.. clas...

0 Likes
4 Replies
Solved

Seeding from migration

This may be a weird question, but is there a way to seed the db from a migration? The reason is that...

0 Likes
1 Replies
Solved

Increment in Query Builder

DB::table('items')->where('id', $itemID)->increment('save',1); As above, is that possible or d...

0 Likes
1 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.