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

Custom methods

It's probably because you're doing sth like echo $user->happiness // without parentheses instead...

0 Likes
Solved
replied 11 years ago

Custom methods

You just did it, seriously ;) Have you tried your code? Note that the above method will only work fo...

0 Likes
replied 11 years ago

Selecting data from 3 tables with limit

I assume all 3 tables do have id, title and created_at columns. This database query should fetch the...

0 Likes
replied 11 years ago

using the '!='sign inside a where() method

Try something like this: 'data4' => KSMschema::where('opmerkingen', '<>', '')->get(); //...

0 Likes
Solved
replied 11 years ago

[proposal] Cache::put() returning the stored data

Since by definition Cache is something that shouldn't be relied on, if something wrong goes while pu...

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.