Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
cxj authored Mar 6, 2023
1 parent c2c6ef2 commit ca40a62
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ You can install the package via composer:
composer require cxj/laravel-looking-glass-client
```

You can publish and run the migrations with:

```bash
php artisan vendor:publish --tag="laravel-looking-glass-client-migrations"
php artisan migrate
```

You can publish the config file with:

```bash
Expand All @@ -35,20 +28,18 @@ This is the contents of the published config file:

```php
return [
'url' => env('LOOKING_GLASS_URL', 'localhost:8000/api/webhook'),
'secret' => env('LOOKING_GLASS_SECRET', 'shared-secret'),
];
```

Optionally, you can publish the views using

```bash
php artisan vendor:publish --tag="laravel-looking-glass-client-views"
```

## Usage

```php
$laravelLookingGlassClient = new Cxj\LookingGlass();
echo $laravelLookingGlassClient->echoPhrase('Hello, Cxj!'); // Todo: TBD
$result = Cxj\Result::make('Test message from your application');

$glass = new Cxj\LookingGlass();
$glass->transmit('Name of Test or Status', $result);
```

## Testing
Expand Down

0 comments on commit ca40a62

Please sign in to comment.