Skip to content

Commit 9936e4e

Browse files
committed
readme updated
1 parent d919ab4 commit 9936e4e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ composer require laratoolbox/query-viewer
2525
### Publish package config
2626

2727
```bash
28-
$ php artisan vendor:publish --provider="LaraToolbox\QueryViewer\QueryViewerServiceProvider"
28+
$ php artisan vendor:publish --provider="LaraToolbox\QueryViewer\QueryViewerServiceProvider"
2929
```
3030

3131
## Usage
@@ -99,21 +99,21 @@ User::select('name')
9999
// []
100100
```
101101

102-
#### Listen and replace bindings for all queries
102+
#### Replace bindings for all queries
103103
```php
104104
use LaraToolbox\QueryViewer\QueryViewer;
105105

106106
\DB::listen(function ($query) {
107-
logger()->info(
108-
QueryViewer::replaceBindings($query->sql, $query->bindings)
109-
);
107+
$sql = QueryViewer::replaceBindings($query->sql, $query->bindings);
108+
109+
logger()->info($sql);
110110
});
111111
```
112112

113113
## Testing
114114

115115
``` bash
116-
$ composer test
116+
$ composer test
117117
```
118118

119119
## Changelog
@@ -129,8 +129,8 @@ If you discover any security related issues, please email instead of using the i
129129
- [Semih ERDOGAN](https://github.com/semiherdogan)
130130
- [Dincer DEMIRCIOGLU](https://github.com/dinncer)
131131
- [All contributors](https://github.com/laratoolbox/query-viewer/graphs/contributors)
132-
- This package is bootstrapped with the help of [melihovv/laravel-package-generator](https://github.com/melihovv/laravel-package-generator).
133-
- Social image generated by [banners.beyondco.de](https://banners.beyondco.de/).
132+
- The social image generated with [banners.beyondco.de](https://banners.beyondco.de/).
133+
- This package generated using the [melihovv/laravel-package-generator](https://github.com/melihovv/laravel-package-generator).
134134

135135
## License
136136

0 commit comments

Comments
 (0)