Guest User

Untitled

a guest
Jan 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AlexxosipovCart;
  4.  
  5. use IlluminateSupportServiceProvider;
  6.  
  7.  
  8. class CartServiceProvider extends ServiceProvider {
  9. public function boot() {
  10.  
  11. }
  12.  
  13. public function register() {
  14. $this->app->singleton('cart', function() {
  15. return new AlexxosipovCartCart;
  16. });
  17. }
  18. }
  19.  
  20. <?php
  21.  
  22. namespace AlexxosipovCart;
  23.  
  24. use IlluminateSupportFacadesCookie;
  25. use AppCart as CartModel;
  26. use IlluminateHttpRequest;
  27. use IlluminateSupportFacadesAuth;
  28. class Cart
  29. {
  30. public function __construct(Request $request)
  31. {
  32. ...
  33. }
  34. ...
  35. }
Add Comment
Please, Sign In to add comment