Support the ongoing development of Laravel.io →

davidrushton

Joined 28 Feb 2014

Statistics

Threads 0
Replies 6
Solutions 1
Articles 0

davidrushton has not posted any threads yet

replied 9 years ago

Deleting row with lowest id from database?

Would this work? $total_posts = Post::count(); $leave = 8; if ( $total_posts > $leave ) { $old...

0 Likes
Solved
replied 9 years ago

Deleting row with lowest id from database?

I think your while statement is wrong - if there are more than 9 posts in the database then it may b...

0 Likes
replied 9 years ago

Deleting row with lowest id from database?

Looks like you might not have any posts in your database in that case. You could update to the follo...

0 Likes
replied 9 years ago

Deleting row with lowest id from database?

Hey. The find method on eloquent queries searches for a post by its primary key (http://laravel.com/...

0 Likes
replied 9 years ago

Creating "Achievements" in Laravel

We did a bit of work on an event based achievement system in Laravel for http://worldwalking.org. Es...

0 Likes

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.