Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppProviders;
- use IlluminateSupportFacadesBlade;
- use IlluminateSupportServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Perform post-registration booting of services.
- *
- * @return void
- */
- public function boot()
- {
- Blade::directive('datetime', function($expression) {
- return "<?php echo $expression->format('m/d/Y H:i'); ?>";
- });
- }
- /**
- * Register bindings in the container.
- *
- * @return void
- */
- public function register()
- {
- //
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement