Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppProviders;
  4.  
  5. use IlluminateSupportFacadesBlade;
  6. use IlluminateSupportServiceProvider;
  7.  
  8. class AppServiceProvider extends ServiceProvider
  9. {
  10. /**
  11. * Perform post-registration booting of services.
  12. *
  13. * @return void
  14. */
  15. public function boot()
  16. {
  17. Blade::directive('datetime', function($expression) {
  18. return "<?php echo $expression->format('m/d/Y H:i'); ?>";
  19. });
  20. }
  21.  
  22. /**
  23. * Register bindings in the container.
  24. *
  25. * @return void
  26. */
  27. public function register()
  28. {
  29. //
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement