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

guamz liked this thread

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 1 year ago.

akhilalphonic, driesvints liked this reply

2

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.