From ed2981de006bcf6bb81593b63250ed290a72ff42 Mon Sep 17 00:00:00 2001 From: prennings Date: Sun, 10 Mar 2019 08:10:51 +0100 Subject: [PATCH] Fixxed document spelling errors --- docs/order.md | 4 ++-- readme.md | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/order.md b/docs/order.md index 266449e..bdd67a2 100644 --- a/docs/order.md +++ b/docs/order.md @@ -24,13 +24,13 @@ When you use the dependency injection option you will have an instance of the `o ### Resolving it from the service container You can resolve the instances from the service container using: ````php -$order = App()->Make('Noxxie\Ptv\Order'); +$order = App()->Make('Noxxie\Ptv\Contracts\Order'); ```` When you want to create a new order within PTV you can also resolve the instance from the service container and execute a functionality at once. For example: you want to create a new order within PTV you can resolve and execute a order at once: ````php -$order = App()->MakeWith('Noxxie\Ptv\Order', [ +$order = App()->MakeWith('Noxxie\Ptv\Contracts\Order', [ 'type' => 'CREATE', 'attributes' => [...], ]); diff --git a/readme.md b/readme.md index 305e887..9993798 100644 --- a/readme.md +++ b/readme.md @@ -91,8 +91,8 @@ You can access one by dependency injection provided by Laravel: ````php Make('Noxxie\Ptv\Route'); -$order = App()->Make('Noxxie\Ptv\Order'); +$route = App()->Make('Noxxie\Ptv\Contracts\Route'); +$order = App()->Make('Noxxie\Ptv\Contracts\Order'); ```` When you want to create a new order within PTV you can also resolve the instance from the service container and execute a functionality at once. For example: you want to create a new order within PTV you can resolve and execute a order at once: ````php -$order = App()->MakeWith('Noxxie\Ptv\Order', [ +$order = App()->MakeWith('Noxxie\Ptv\Contracts\Order', [ 'type' => 'CREATE', 'attributes' => [...], ]); @@ -125,13 +125,13 @@ $order = App()->MakeWith('Noxxie\Ptv\Order', [ The same applies for resolving a route from the service container. However the functionality is limited to fetch one route from the database. ````php -$route= App()->MakeWith('Noxxie\Ptv\Route', [ - 'id' => 123456, +$route= App()->MakeWith('Noxxie\Ptv\Contracts\Route', [ + 'id' => '123456', ]; ```` ### Using the facades -You can also use the provided facades to start using this package. +You can also use the provided facades to start using this package. (This the recommended way to use this package) ````php