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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ Once installed, you can use the service by either inject it to your methods or a
68
68
For more information about how to use the service, look at https://github.com/joshrps/laravel-shopify-API-wrapper.
69
69
70
70
### Dependency Injection
71
-
Now you can simply type hint the service in your method's arguments. For better readabilty, we prefer to import the full class name with a `use` statement, and aliasing it to Shopify while we're at it.
71
+
Now you can simply type hint the service in your method's arguments. For better readabilty, we prefer to import the full class name with a `use` statement, and alias it to Shopify while we're at it.
72
72
73
73
```php
74
74
use RocketCode\Shopify\API as Shopify;
@@ -89,7 +89,7 @@ Route::get('/', function (Shopify $shopify) {
89
89
```
90
90
91
91
### Facade
92
-
Now you can use Laravel's [on the fly facades](https://twitter.com/taylorotwell/status/814944242158149632) feature to use the service "statically".
92
+
Now you can use Laravel's [on the fly facades](https://twitter.com/taylorotwell/status/814944242158149632) feature to use the service "statically". We prefer to alias it to ShopifyAPI while we're at it.
0 commit comments