Support the ongoing development of Laravel.io →

4,312 Threads

pivot table with 3 columns

Hi Models : There is Party (should be renamed 'game') User can register to Party then user has a reg...

0 Likes
1 Replies

Followers posts list

Hi, I want to create a sort of basic twitter clone as a learning project and wondered how you would...

0 Likes
0 Replies

Can I query the results of a query?

This isn't working, and maybe it's not possible, or maybe I'm close? $allcars = $user->cars()...

0 Likes
2 Replies
posted 10 years ago

FULL Text Search with order by Score.

I have this in my current app that I am moving to Laravel. $sql = "SELECT *, MATCH(title,captio...

0 Likes
0 Replies

How create this SQL with laravel

Anybody know how create this SQL with Query builder: SELECT * FROM (SELECT * FROM 005_056_cola_envio...

0 Likes
2 Replies

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
posted 10 years ago

Composer update on 4.1.* breaks eloquent queries

After I ran composer update which required laravel 4.1.* all my Eloquent queries failed. The toArray...

0 Likes
3 Replies

What's the best way to troubleshoot a controller problem?

In my controller I'm trying to delete a record from a table and the only message I get back to the c...

0 Likes
2 Replies

Querying ORM with WHERE clause

Howdy. I have nested resource controllers, like so: http://example.org/v1/jobs/1/departments My issu...

0 Likes
1 Replies

Laravel specific Sublime Text 3 snippets

Anyone knows where I could find some Laravel specific Sublime Text 3 snippets? For example creating...

0 Likes
1 Replies

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
posted 10 years ago

The variable loses its value inside the SQL query in Eloquent (a matter of scope)

Hello and good day to everyone The issue is tricky (for me). I passed the parameter value from the c...

0 Likes
15 Replies
Solved
posted 10 years ago

Checking if object is related in many-to-many

I have a Post model with the following function: public function tags() { return $this->belongs...

0 Likes
1 Replies
Solved

Laravel Quickstart: Class 'User' not found

Dear Laravel Users, I just got to know a few days ago about Laravel (=> I'm a "stupid starte...

0 Likes
5 Replies
Solved

Change associated table in model with setTable() don't works

Hello community, I try to get data via one model from two different tables, so I want to change the...

0 Likes
0 Replies

Model attribute accessor not working with object_get helper function

The model: class Item extends Eloquent { public function getCentsAttribute() { return substr(...

0 Likes
3 Replies
Solved

How can I cache all data in Eloquent

How can I try to using cache for all of Eloquent query. Example: $users = User::remember(10)->get...

0 Likes
1 Replies
posted 10 years ago

Mass assignment User::create() undefined and $user->save() undefined ?

Hello everyone! I have a little problem to register a user. Here is the function that processes the...

0 Likes
0 Replies
posted 10 years ago

getting model belongsTo attributes

class Batch extends Eloquent { public function coupons() { return $this->hasMany('Cou...

0 Likes
1 Replies

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

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.