From aa69e360bf051ebf56cc1d4975d8e2010157e930 Mon Sep 17 00:00:00 2001 From: Michel Bardelmeijer Date: Sat, 4 Dec 2021 20:28:49 +0100 Subject: [PATCH] Tweak README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7639c63..699e316 100644 --- a/README.md +++ b/README.md @@ -6,31 +6,31 @@ You can upload a file through drag-and-drop, url or Google Drive. The file is st ### Installing -~~~~ +```bash composer require enflow/nova-uploadcare-field -~~~~ +``` ### Getting Started Add Uploadcare Public Key to your `config/services.php` array -~~~~ +```php 'uploadcare' => [ 'public_key' => 'XXXXX', ], -~~~~ +``` Register the field in the Nova resource: -~~~~ +```php use Enflow\NovaUploadcareField\Uploadcare; -~~~~ +``` Use the field: -~~~~ +```php Uploadcare::make('File') -~~~~ +``` ## Credits Largely based on the package [`nova-uploadcare-imagefield`](https://bitbucket.org/adnanchowdhury/nova-uploadcare-imagefield/), created by Adnan Chowdhury. Thanks Adnan!