Skip to content

Commit 78a1a3f

Browse files
Initial commit
0 parents  commit 78a1a3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+13350
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.gitattributes

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
* text=auto
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
public/*.css binary
10+
public/*.js binary
11+
12+
/.github export-ignore
13+
/tests export-ignore
14+
.gitattributes export-ignore
15+
.gitignore export-ignore
16+
.editorconfig export-ignore
17+
.styleci.yml export-ignore
18+
CHANGELOG.md export-ignore
19+
package-lock.json export-ignore
20+
phpstan.neon.dist export-ignore
21+
phpunit.xml.dist export-ignore
22+
RELEASE.md export-ignore
23+
UPGRADE.md export-ignore
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Bug Report
2+
description: "Report something that's broken."
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: "Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports. If you notice improper DocBlock, PHPStan, or IDE warnings while using Laravel, do not create a GitHub issue. Instead, please submit a pull request to fix the problem."
7+
- type: input
8+
attributes:
9+
label: FailedJobs Version
10+
description: Provide the FailedJobs version that you are using.
11+
placeholder: 1.6.1
12+
validations:
13+
required: true
14+
- type: input
15+
attributes:
16+
label: Laravel Version
17+
description: Provide the Laravel version that you are using. [Please ensure it is still supported.](https://laravel.com/docs/releases#support-policy)
18+
placeholder: 10.4.1
19+
validations:
20+
required: true
21+
- type: input
22+
attributes:
23+
label: PHP Version
24+
description: Provide the PHP version that you are using.
25+
placeholder: 8.1.4
26+
validations:
27+
required: true
28+
- type: dropdown
29+
attributes:
30+
label: Redis Driver
31+
options:
32+
- PhpRedis
33+
- Predis
34+
validations:
35+
required: true
36+
- type: input
37+
attributes:
38+
label: Redis Version
39+
description: Provide the PhpRedis/Predis version that you are using.
40+
placeholder: 3.4.1
41+
validations:
42+
required: true
43+
- type: input
44+
attributes:
45+
label: Database Driver & Version
46+
description: If applicable, provide the database driver and version you are using.
47+
placeholder: "MySQL 8.0.31 for macOS 13.0 on arm64 (Homebrew)"
48+
validations:
49+
required: false
50+
- type: textarea
51+
attributes:
52+
label: Description
53+
description: Provide a detailed description of the issue you are facing.
54+
validations:
55+
required: true
56+
- type: textarea
57+
attributes:
58+
label: Steps To Reproduce
59+
description: Provide detailed steps to reproduce your issue. If necessary, please provide a GitHub repository to demonstrate your issue using `laravel new bug-report --github="--public"`.
60+
validations:
61+
required: true
62+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
name: "Feature request"
3+
about: 'For ideas or feature requests, please make a pull request, or open an issue'
4+
---

.github/ISSUE_TEMPLATE/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Support Questions & Other
4+
url: https://laravel.com/docs/contributions#support-questions
5+
about: 'This repository is only for reporting bugs. If you have a question or need help using the library, click:'
6+
- name: Documentation issue
7+
url: https://github.com/laravel/docs
8+
about: For documentation issues, open a pull request at the laravel/docs repository

.github/workflows/compile-assets.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: compile assets
2+
3+
on: [push]
4+
5+
jobs:
6+
compile:
7+
uses: laravel/.github/.github/workflows/compile-assets.yml@main

.github/workflows/issues.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: issues
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
help-wanted:
12+
uses: laravel/.github/.github/workflows/issues.yml@main

.github/workflows/pull-requests.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: pull requests
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
uneditable:
12+
uses: laravel/.github/.github/workflows/pull-requests.yml@main

.github/workflows/static-analysis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: static analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
tests:
15+
uses: laravel/.github/.github/workflows/static-analysis.yml@main

.github/workflows/tests.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
8+
pull_request:
9+
schedule:
10+
- cron: '0 0 * * *'
11+
12+
jobs:
13+
tests:
14+
runs-on: ubuntu-22.04
15+
16+
services:
17+
redis:
18+
image: redis
19+
ports:
20+
- 6379:6379
21+
options: --entrypoint redis-server
22+
23+
strategy:
24+
fail-fast: true
25+
matrix:
26+
php: [7.3, 7.4, '8.0', 8.1, 8.2, 8.3]
27+
laravel: [8, 9, 10, 11]
28+
exclude:
29+
- php: 7.3
30+
laravel: 9
31+
- php: 7.3
32+
laravel: 10
33+
- php: 7.3
34+
laravel: 11
35+
- php: 7.4
36+
laravel: 9
37+
- php: 7.4
38+
laravel: 10
39+
- php: 7.4
40+
laravel: 11
41+
- php: '8.0'
42+
laravel: 10
43+
- php: '8.0'
44+
laravel: 11
45+
- php: 8.1
46+
laravel: 11
47+
- php: 8.2
48+
laravel: 8
49+
- php: 8.3
50+
laravel: 8
51+
- php: 8.3
52+
laravel: 9
53+
54+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
55+
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v4
59+
60+
- name: Setup PHP
61+
uses: shivammathur/setup-php@v2
62+
with:
63+
php-version: ${{ matrix.php }}
64+
extensions: dom, curl, libxml, mbstring, redis, zip
65+
ini-values: error_reporting=E_ALL
66+
tools: composer:v2
67+
coverage: none
68+
69+
- name: Install dependencies
70+
run: |
71+
composer require "illuminate/contracts=^${{ matrix.laravel }}" --dev --no-update
72+
composer update --prefer-dist --no-interaction --no-progress
73+
74+
- name: Execute tests
75+
run: vendor/bin/phpunit
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: update changelog
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
update:
9+
uses: laravel/.github/.github/workflows/update-changelog.yml@main

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/vendor
2+
/laravel
3+
/node_modules
4+
/public/app.js.LICENSE.txt
5+
/phpunit.xml
6+
composer.lock
7+
.phpunit.result.cache
8+
.idea

.styleci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
php:
2+
preset: laravel
3+
js: true
4+
css: true

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release Notes
2+
3+
## [v1.0.0](https://github.com/hpwebdeveloper) - 2024-01-16
4+
5+
* Works and functional

LICENSE.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Original MIT License (as used in this project):
2+
3+
The MIT License (MIT)
4+
5+
Copyright (c) Taylor Otwell
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.
24+
25+
26+
The MIT License (MIT)
27+
28+
Copyright (c) Hamed Panjeh
29+
30+
Permission is hereby granted, free of charge, to any person obtaining a copy
31+
of this software and associated documentation files (the "Software"), to deal
32+
in the Software without restriction, including without limitation the rights
33+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
34+
copies of the Software, and to permit persons to whom the Software is
35+
furnished to do so, subject to the following conditions:
36+
37+
The above copyright notice and this permission notice shall be included in
38+
all copies or substantial portions of the Software.
39+
40+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
46+
THE SOFTWARE.

README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<p align="center">
2+
<a href="https://github.com/HPWebdeveloper/laravel-failed-jobs/actions"><img src="https://github.com/HPWebdeveloper/laravel-failed-jobs/workflows/tests/badge.svg" alt="Build Status"></a>
3+
<a href="https://packagist.org/packages/HPWebdeveloper/laravel-failed-jobs"><img src="https://img.shields.io/packagist/dt/HPWebdeveloper/laravel-failed-jobs" alt="Total Downloads"></a>
4+
<a href="https://packagist.org/packages/HPWebdeveloper/laravel-failed-jobs"><img src="https://img.shields.io/packagist/v/HPWebdeveloper/laravel-failed-jobs" alt="Latest Stable Version"></a>
5+
<a href="https://packagist.org/packages/HPWebdeveloper/laravel-failed-jobs"><img src="https://img.shields.io/packagist/l/HPWebdeveloper/laravel-failed-jobs" alt="License"></a>
6+
</p>
7+
8+
# Laravel Failed Jobs
9+
10+
If you're running an application and the queue driver isn't Redis, which Laravel Horizon supports, you might be missing out on the elegant features it offers. Laravel Horizon is known for its elegance and a wide range of implemented features. One of its standout features is its ability to present detailed information about failed job payloads and automatically load new failed jobs.
11+
12+
In your specific application, if you've been longing for a similar Horizon-like UI to monitor failed_jobs, the Laravel-Failed-Jobs package has got you covered. This package simplifies the process of visualizing failed jobs.
13+
14+
## Key Benefits:
15+
16+
Seamless Integration: You can seamlessly integrate the Laravel-Failed-Jobs package into your project, even if you are already using Laravel Horizon. There's no conflict between the two. While Horizon primarily reads and writes data to Redis, Laravel-Failed-Jobs retrieves data from the failed_jobs table.
17+
With Laravel-Failed-Jobs, you can enjoy the convenience of monitoring failed jobs in your application, regardless of your queue driver. This package brings the power and elegance of Laravel Horizon's failed job handling to your specific setup.
18+
19+
20+
As you correctly understood, it's important to note that the Laravel-Failed-Jobs package focuses solely on enhancing the visualization of failed jobs and does not offer managing of faild jobs or the comprehensive set of robust features found in Laravel Horizon.
21+
22+
23+
## Installation:
24+
You may install Laravel-Failed-Jobs package into your project using the Composer package manager:
25+
26+
```bash
27+
composer require hpwebdeveloper/laravel-failed-jobs
28+
```
29+
30+
After installing Laravel-Failed-Jobs, publish its assets using the failedjobs:install Artisan command:
31+
32+
```bash
33+
php artisan failedjobs:install
34+
```
35+
36+
## Dashboard Authorization
37+
38+
Find `app/Providers/FailedJobsServiceProvider.php` and then follow the same tutorial here:
39+
40+
https://laravel.com/docs/10.x/horizon#dashboard-authorization
41+
42+
43+
## Licensing
44+
45+
This repository uses two licenses:
46+
47+
- The original codebase is distributed under the MIT License (MIT) (Copyright (c) Taylor Otwell), which you can find in the [LICENSE](https://github.com/HPWebdeveloper/laravel-failed-jobs/blob/main/LICENSE.md) file.
48+
49+
- Any modifications made to the original codebase are subject to our own license, which you can find in the [LICENSE](https://github.com/HPWebdeveloper/laravel-failed-jobs/blob/main/LICENSE.md) file.

UPGRADE.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Upgrade Guide
2+
3+
With every upgrade, make sure to publish FailedJobs's assets and clear the view cache:
4+
5+
php artisan failedjobs:publish
6+
7+
php artisan view:clear
8+
9+
### Minimum PHP Version
10+
11+
PHP 7.3 is now the minimum required version.
12+
13+
### Minimum Laravel Version
14+
15+
Laravel 8.0 is now the minimum required version.

0 commit comments

Comments
 (0)