Skip to content

Commit

Permalink
Patching vendor publishable code
Browse files Browse the repository at this point in the history
Using base_path instead of resource_path as this function is only available since Laravel 5.2. This minor change offers backward compatibility to 5.1.x also.
  • Loading branch information
gopal-g committed Mar 13, 2018
1 parent e881cc8 commit a36b24d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PaymentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function register()
$this->publishes([
__DIR__ . '/Config/config.php' => base_path('config/payment.php'),
__DIR__ . '/Views/middleware.blade.php' => base_path('app/Http/Middleware/VerifyCsrfMiddleware.php'),
__DIR__ . '/Views/ccavenue.blade.php' => resource_path('views/vendor/payment/ccavenue.blade.php'),
__DIR__ . '/Views/ccavenue.blade.php' => base_path('resources/views/vendor/payment/ccavenue.blade.php'),

]);

$this->loadViewsFrom(__DIR__ . '/views', 'payment');
Expand Down

0 comments on commit a36b24d

Please sign in to comment.