Support the ongoing development of Laravel.io →

4,311 Threads

Caching conflicting with appends

Hello, I'm using Larvel 4.1 on Ubuntu. My model caches getOne function caches data and returns it fi...

0 Likes
0 Replies

[Package] Laravel single table inheritance

#What is Laravel Single table inheritance? Laravel Single table inheritance is a Laravel4 package to...

0 Likes
1 Replies

Relationships problem

Hello guys, I'm trying to make a post with comments system but i'm stuck at the part with relationsh...

0 Likes
0 Replies

Injecting queries to models

Hi there, today I was re-doing the structure of my application and I had this problem: 1 table conta...

0 Likes
0 Replies
posted 10 years ago

Formating date in Eloquent's where clause.

Is there any way to format datetime type coloumn in the where clause of Eloquent. Right now, I want...

0 Likes
1 Replies

get the last record in each group

object(Illuminate\Database\Eloquent\Collection)#651 (1) { ["items":protected]=> array(8...

0 Likes
0 Replies

Struggling to clear SQL error.

I am struggling to fix the following SQL error: SQLSTATE[42S22]: Column not found: 1054 Unknown colu...

0 Likes
2 Replies

Custom Pivot Class Accessors / Mutators

What I'm trying to do is use accessors / mutators in the custom pivot class I've created, but I'm ei...

0 Likes
0 Replies

Eloquent Dynamic Where Queries - Database errors

Hello Laravel Community! I'm trying to use a Dynamic Where Query, however it end up throwing a error...

0 Likes
0 Replies
posted 10 years ago

aquivalent to "->first()"

What is the aquivalent to the first() method of the Eloquent ORM, but where i can choose the positio...

0 Likes
3 Replies

How to optimize the fetch to the morphTo relation

On Laravel "4.1.29", I have several different type of users. Each type of user has it's ow...

0 Likes
0 Replies

please help -- how to parse (use) aggragate query result

I have managed to evaluate the occurances of distinct values of a column via a raw query. The result...

0 Likes
0 Replies

# of occurances of distinct values in a column

Hi all, Suppose I have an orders table and it has a price field. The price values are between 1 and...

0 Likes
0 Replies

Laravel database errors - need help fixing

So, with laravel 4.27, alot of the FluxBB functions got messed up. current function isn't working, a...

0 Likes
0 Replies

how to use this function in class User extends Eloquent

public function destroy($id) { User::find($id)->delete(); return Redirect::route('user') ->wit...

0 Likes
4 Replies

Laravel Auth - Problem with logging in.

Hello, I've problem with logging into my application, i've tried to use another hashing, but it didn...

0 Likes
0 Replies

how to add column in table migration table Already exists

how to add column in table migration updated_at ,created_at,delteded_at

0 Likes
3 Replies
Solved

After dump-autoload still getting class not found exception

Hi guys, I am having a bit of trouble with the app migrating to the production server. I have a clas...

0 Likes
1 Replies

how to delete row from table using Eloquent

this code in routes.php dont work Route::delete('user', function($id){ $newStudent =User::find($id)...

0 Likes
5 Replies

Aliasing and building derived database column names How to make this easy ?

This one has been bugging be for months and I so far I have not found an comprehensive solution to s...

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