You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was surprised that this isn't an implemented feature yet (not to my knowledge, correct me if I'm wrong), but it would be great if we would be able to customize the default blade file template that is generated with php artisan make:view or php artisan make:component. I saw that editing classes is already possible with php artisan stub:publish, but I couldn't find a way to edit the default blade template that is generated. On top of that, it would be very nice if there would be a variable we can use that becomes the filename of the view / component. So we'd be able to do something like this:
<div class="{{ name }}-wrapper">
...
</div>
It's not anything particular, and it wouldn't be a massive timesaver, but it would be a cool thing to have if you have a template for every component and/or view.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was surprised that this isn't an implemented feature yet (not to my knowledge, correct me if I'm wrong), but it would be great if we would be able to customize the default blade file template that is generated with
php artisan make:view
orphp artisan make:component
. I saw that editing classes is already possible withphp artisan stub:publish
, but I couldn't find a way to edit the default blade template that is generated. On top of that, it would be very nice if there would be a variable we can use that becomes the filename of the view / component. So we'd be able to do something like this:It's not anything particular, and it wouldn't be a massive timesaver, but it would be a cool thing to have if you have a template for every component and/or view.
Beta Was this translation helpful? Give feedback.
All reactions