Support the ongoing development of Laravel.io →

arjan

Joined 19 Jun 2015

Statistics

Threads 0
Replies 5
Solutions 1
Articles 0

arjan has not posted any threads yet

replied 9 years ago

Tell Eloquent to return an array using a column value as key

You can do: Icon::all()->keyBy('name') or Icon::all()->keyBy('name')->toArray()

0 Likes
Solved
replied 9 years ago

Getting content of a view file and display it using ajax request

You are returning just javascript and i guess this will have a problem with the new lines. In my opi...

0 Likes
replied 9 years ago

GROUP_CONCATE() in Laravel 5

Try this DB::statement('SET GLOBAL group_concat_max_len = 1000000');

0 Likes
replied 9 years ago

Join is breaking my relationships

Does the show table also have and id field? If so, rewrite your get() to the following: get(array('s...

0 Likes
replied 9 years ago

Join is breaking my relationships

Try to change the select of that query and use the id you need in that select and not the id of the...

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.