Support the ongoing development of Laravel.io →
Blade Architecture Forms
1

You could do something like this to convert the slug into the name instead of needing the name in the object.

{{ Str::title(str_replace('-', ' ', $slug)) }}

Last updated 2 weeks ago.
2

Sign in to participate in this thread!

LaraJobs

Your banner here too?

Razvan ajax30 Joined 2 Oct 2021

Moderators

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.

© 2023 Laravel.io - All rights reserved.