1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/create-custom-blade-directives-for-business-logic.md
2021-04-07 20:16:47 +02:00

496 B

title tweet_id thread_slug author_username images created_at slug
Create custom Blade directives for business logic 1272826448810737670 laravel-clean-code-tactics samuelstancl
https://pbs.twimg.com/media/Ean7bYSXkAIwDIR.png
2020-06-16T09:40:48+00:00 create-custom-blade-directives-for-business-logic

You can make your Blade templates more expressive by creating custom directives. For example, rather than checking if the user has the admin role, you could use @admin.