You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,18 @@ Via Composer
95
95
$ composer require shetabit/payment
96
96
```
97
97
98
+
## Publish Vendor Files
99
+
100
+
-**publish configuration files:**
101
+
```bash
102
+
php artisan vendor:publish --tag=payment-config
103
+
```
104
+
105
+
-**publish views for customization:**
106
+
```bash
107
+
php artisan vendor:publish --tag=payment-views
108
+
```
109
+
98
110
## Configure
99
111
100
112
If you are using `Laravel 5.5` or higher then you don't need to add the provider and alias. (Skip to b)
@@ -115,8 +127,6 @@ a. In your `config/app.php` file add these two lines.
115
127
],
116
128
```
117
129
118
-
b. then run `php artisan vendor:publish` to publish `config/payment.php` file in your config directory.
119
-
120
130
In the config file you can set the `default driver` to use for all your payments. But you can also change the driver at runtime.
121
131
122
132
Choose what gateway you would like to use in your application. Then make that as default driver so that you don't have to specify that everywhere. But, you can also use multiple gateways in a project.
0 commit comments