Support the ongoing development of Laravel.io →
Tobias van Beek

Tobias van Beek

Moderator
Joined 8 Jan 2018
I'm a senior web developer who like to help other people and share knowledge.

Statistics

Threads 0
Replies 488
Solutions 48
Articles 0

tvbeek has not posted any threads yet

replied 3 years ago

Changing the morphMap for only some relations

@gibsonjareds do you see the '0' and '1' in the database? My first idea is that it suggest that you...

1 Likes
replied 3 years ago

How can I avoid repeating this line in all my methods?

Another way is to not need the config everywhere. You can define a package view directory, see: http...

0 Likes
replied 3 years ago

How do I pass common variables to all the views in Laravel?

In your code $this->site_settings = Settings::first(); will result in an object of the type Setti...

0 Likes
replied 3 years ago

sorting in descending orderlara

@shazam7734 I'm not sure if you can edit your first post to see the change. But the difference is to...

1 Likes
replied 3 years ago

sorting in descending orderlara

Hello @shazam7734 I think it can be helpful to read the documentation about the query builder for mo...

0 Likes
Solved

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.