Published on January 26, 2024By DeveloperBreeze
// Define a custom Blade directive for formatting datetime
Blade::directive('datetime', function ($expression) {
return "<?php echo ($expression)->format('m/d/Y H:i'); ?>";
});
// Define a custom Blade directive for formatting datetime
Blade::directive('datetime', function ($expression) {
return "<?php echo ($expression)->format('m/d/Y H:i'); ?>";
});
Comments
Please log in to leave a comment.