From 52f5a4193071467f5eeb60ff558f2bce02656d4d Mon Sep 17 00:00:00 2001 From: Ezra Obiwale Date: Fri, 20 Oct 2017 10:05:12 +0100 Subject: [PATCH 1/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0480ca1..9af0873 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ class BookController extends Controller { return Book::class; } - protected function validationRules($forUpdate = false) { + protected function validationRules(array $data, $id = null) { return [ 'title' => 'required|max:200', 'author' => 'required|max:50', @@ -52,4 +52,4 @@ and all `CRUD` operations and give the right JSON responses. ## API Documentation -Coming soon \ No newline at end of file +Coming soon From 0e05cbe5b2fd4fb6da31dd95795e7ddce700a1d7 Mon Sep 17 00:00:00 2001 From: Ezra Obiwale Date: Fri, 20 Oct 2017 10:08:24 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 9af0873..fd64c9a 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,18 @@ composer require d-scribe/laraquick ## Dependencies +### v1.* + +- PHP >= 7.0 +- Laravel - ~5.5 +- Guzzle - ~6.0 + +### v0.* + - PHP >= 5.6.0 - Laravel - 5.4.* - Laravel Fractal - ^4.0 +- Guzzle - ~6.0 ## Example From a23c641e829a2cf4dabee36b97de5f8f011edb4a Mon Sep 17 00:00:00 2001 From: Ezra Obiwale Date: Fri, 20 Oct 2017 10:11:12 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index fd64c9a..1bd7de7 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,10 @@ class BookController extends Controller { And with just the above, the controller would take care of listing (w/ pagination), and all `CRUD` operations and give the right JSON responses. +```php +Route::resource('books', 'BookController'); +``` + ## API Documentation Coming soon From fadca925be69dc0f5b99c3513c773185bda0fdfc Mon Sep 17 00:00:00 2001 From: Ezra Obiwale Date: Fri, 20 Oct 2017 10:12:09 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bd7de7..fd21bc6 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ And with just the above, the controller would take care of listing (w/ paginatio and all `CRUD` operations and give the right JSON responses. ```php -Route::resource('books', 'BookController'); +Route::apiResource('books', 'BookController'); ``` ## API Documentation