Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AlexxosipovCart;
- use IlluminateSupportServiceProvider;
- class CartServiceProvider extends ServiceProvider {
- public function boot() {
- }
- public function register() {
- $this->app->singleton('cart', function() {
- return new AlexxosipovCartCart;
- });
- }
- }
- <?php
- namespace AlexxosipovCart;
- use IlluminateSupportFacadesCookie;
- use AppCart as CartModel;
- use IlluminateHttpRequest;
- use IlluminateSupportFacadesAuth;
- class Cart
- {
- public function __construct(Request $request)
- {
- ...
- }
- ...
- }
Add Comment
Please, Sign In to add comment