Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Halil Cosdu committed Apr 16, 2024
1 parent ff29bf1 commit 83ef965
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.3, 8.2, 8.1]
php: [8.3, 8.2]
laravel: [10.*]
stability: [prefer-lowest, prefer-stable]
include:
Expand Down
20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ You can install the package via composer:
composer require halilcosdu/laravel-logweaver
```

You can publish and run the migrations with:

```bash
php artisan vendor:publish --tag="laravel-logweaver-migrations"
php artisan migrate
```

You can publish the config file with:

```bash
Expand All @@ -31,20 +24,17 @@ This is the contents of the published config file:

```php
return [
'sleep' => env('LOG_WEAVER_SLEEP', 0.5),
];
```

Optionally, you can publish the views using

```bash
php artisan vendor:publish --tag="laravel-logweaver-views"
```

## Usage

```php
$logWeaver = new HalilCosdu\LogWeaver();
echo $logWeaver->echoPhrase('Hello, HalilCosdu!');
$log = LogWeaver::description('User logged in')
->content(['user_id' => 1, 'email' => '[email protected]'])
->level('info')
->toArray();
```

## Testing
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": "^8.0 || ^8.1 || ^8.2",
"php": "^8.2",
"spatie/laravel-package-tools": "^1.16",
"illuminate/contracts": "^10.0||^11.0"
},
Expand Down

0 comments on commit 83ef965

Please sign in to comment.