diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 41744f56..20b078f0 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -9,14 +9,14 @@ jobs:
strategy:
fail-fast: true
matrix:
- php: [8.0, 8.1]
+ php: [8.1, 8.2]
dependency-version: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 2
@@ -24,14 +24,13 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
- key: dependencies-laravel-8-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
+ key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
- tools: composer:v2
+ extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
coverage: pcov
- name: Install dependencies
diff --git a/.gitignore b/.gitignore
index 18546609..39458d84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,9 @@
-/build/
-/vendor/
+/.phpunit.cache
+/build
+/vendor
/composer.phar
/composer.lock
/phpunit.xml
.DS_Store
Thumbs.db
+.phpunit.result.cache
diff --git a/README.md b/README.md
index e4450b5c..6ee6607a 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LogViewer/rel
## Features
- A great Log viewer API.
- - Laravel `5.x` to `9.x` are supported.
+ - Laravel `5.x` to `10.x` are supported.
- Ready to use (Views, Routes, controllers … Out of the box) [Note: No need to publish assets]
- View, paginate, filter, download and delete logs.
- Load a custom logs storage path.
@@ -50,6 +50,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LogViewer/rel
|---------|-----------------------|
| `ar` | Arabic |
| `bg` | Bulgarian |
+| `bn` | Bengali |
| `de` | German |
| `en` | English |
| `es` | Spanish |
@@ -96,7 +97,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
![Logs list](https://raw.githubusercontent.com/ARCANEDEV/LogViewer/master/_screenshots/2-logs-list.jpg)
![Single log](https://raw.githubusercontent.com/ARCANEDEV/LogViewer/master/_screenshots/3-single-log.jpg)
-[badge_laravel]: https://img.shields.io/badge/Laravel-5.x%20to%209.x-orange.svg?style=flat-square
+[badge_laravel]: https://img.shields.io/badge/Laravel-5.x%20to%2010.x-orange.svg?style=flat-square
[badge_license]: https://img.shields.io/packagist/l/arcanedev/log-viewer.svg?style=flat-square
[badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/LogViewer/run-tests?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/LogViewer.svg?style=flat-square
diff --git a/composer.json b/composer.json
index adf9f826..7888c1e8 100644
--- a/composer.json
+++ b/composer.json
@@ -14,16 +14,16 @@
"type": "library",
"license": "MIT",
"require": {
- "php": "^8.0",
+ "php": "^8.1",
"ext-json": "*",
- "arcanedev/support": "^9.0",
+ "arcanedev/support": "^10.0",
"psr/log": "^1.0|^2.0|^3.0"
},
"require-dev": {
- "laravel/framework": "^9.0",
- "mockery/mockery": "^1.4.4",
- "orchestra/testbench-core": "^7.0",
- "phpunit/phpunit": "^9.5.10"
+ "laravel/framework": "^10.0",
+ "mockery/mockery": "^1.5.1",
+ "orchestra/testbench-core": "^8.0",
+ "phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 031363ca..32ea0ada 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -6,10 +6,10 @@
>
- ./tests
+ ./tests
-
+
./src
diff --git a/tests/Commands/PublishCommandTest.php b/tests/Commands/PublishCommandTest.php
index 6e5c3adc..4da49c37 100644
--- a/tests/Commands/PublishCommandTest.php
+++ b/tests/Commands/PublishCommandTest.php
@@ -81,7 +81,7 @@ public function it_can_publish_only_translations(string $tag): void
// TODO: Add views assertions
}
- public function providePublishableTranslationsTags(): array
+ public static function providePublishableTranslationsTags(): array
{
return [
['translations'],
@@ -154,9 +154,7 @@ private function deleteConfig(): void
}
/**
- * Check if LogViewer config file exists
- *
- * @return bool
+ * Check if LogViewer config file exists.
*/
private function isConfigExists(): bool
{
@@ -167,8 +165,6 @@ private function isConfigExists(): bool
/**
* Get LogViewer config file path.
- *
- * @return string
*/
private function getConfigFilePath(): string
{
diff --git a/tests/Entities/LogTest.php b/tests/Entities/LogTest.php
index 7a42fa1a..49dc6f82 100644
--- a/tests/Entities/LogTest.php
+++ b/tests/Entities/LogTest.php
@@ -194,10 +194,8 @@ public function it_can_convert_to_json(): void
/**
* Provide valid dates.
- *
- * @return array
*/
- public function provideDates(): array
+ public static function provideDates(): array
{
return [
['2015-01-01'],
diff --git a/tests/TestCase.php b/tests/TestCase.php
index 74c918fe..6aa0f9bc 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -34,8 +34,8 @@ abstract class TestCase extends BaseTestCase
protected static array $logLevels = [];
protected static array $locales = [
- 'ar', 'bg', 'de', 'en', 'es', 'et', 'fa', 'fr', 'hu', 'hy', 'id', 'it', 'ja', 'ko', 'ms', 'nl', 'pl',
- 'pt-BR', 'ro', 'ru', 'si', 'sv', 'th', 'tr', 'uk', 'zh-TW', 'zh'
+ 'ar', 'bg', 'bn', 'de', 'en', 'es', 'et', 'fa', 'fr', 'hu', 'hy', 'id', 'it', 'ja', 'ko', 'ms', 'nl',
+ 'pl', 'pt-BR', 'ro', 'ru', 'si', 'sv', 'th', 'tr', 'uk', 'zh-TW', 'zh'
];
/* -----------------------------------------------------------------
diff --git a/translations/bn.json b/translations/bn.json
new file mode 100644
index 00000000..9b943935
--- /dev/null
+++ b/translations/bn.json
@@ -0,0 +1,13 @@
+{
+ "Date": "তারিখ",
+ "The list of logs is empty!": "কোন লগ পাওয়া যায়নি!",
+ "All": "সবগুলি",
+ "Emergency": "জরুরী",
+ "Alert": "সতর্ক",
+ "Critical": "সংকটপূর্ণ",
+ "Error": "ত্রুটি",
+ "Warning": "সতর্কতা",
+ "Notice": "নোটিস",
+ "Info": "তথ্য",
+ "Debug": "রুটি অনুসন্ধান"
+}