Support the ongoing development of Laravel.io →
marekmurawski

marekmurawski

Joined 31 Jan 2014

Statistics

Threads 1
Replies 30
Solutions 10
Articles 0

[macro] Form::select() with optgroups based on model's field

Suppose you have a simple products table: id | name | category ....................... 1 | prod1 |...

0 Likes
1 Replies
replied 11 years ago

filter with variable from domain

You can access route parameters within your filter via first closure's parameter ($route). In your c...

0 Likes
replied 11 years ago

Database Truncate Even If It Has Foreign Key

If you're on MySQL (and you probably are) try to turn off foreign key checks using this statement be...

0 Likes
Solved
replied 11 years ago

foreach on eloquent from last to first

Or simply: <h1>{{ $post->title }}</h1> @foreach($post->comments->reverse() as $...

0 Likes
Solved
replied 11 years ago

Filter own threads

Just click a person's name (not the avatar picture)

0 Likes
replied 11 years ago

Filter own threads

Currently if you create a thread, it's listed under your profile page but nonetheless it would be us...

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.

© 2026 Laravel.io - All rights reserved.