Skip to content

Commit 3f13bff

Browse files
authored
Filament v4 and moving to Backstage organization (#49)
* Upgrade to Filament v4 * Run Filament upgrade * Remove upgrade script * Fix styling * Remove unused import * Fix styling * Update namespaces * Update composer.json * update * Fix styling --------- Co-authored-by: Baspa <[email protected]>
1 parent 2374ba3 commit 3f13bff

25 files changed

+209
-192
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/vormkracht10/filament-mails/discussions/new?category=q-a
4+
url: https://github.com/backstagephp/filament-mails/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/vormkracht10/filament-mails/discussions/new?category=ideas
7+
url: https://github.com/backstagephp/filament-mails/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/vormkracht10/filament-mails/security/policy
10+
url: https://github.com/backstagephp/filament-mails/security/policy
1111
about: Learn how to notify us for sensitive bugs

CHANGELOG.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,38 @@ All notable changes to `filament-mails` will be documented in this file.
66

77
### What's Changed
88

9-
* Fix issue with navigation icons by @Skullbock in https://github.com/vormkracht10/filament-mails/pull/37
9+
* Fix issue with navigation icons by @Skullbock in https://github.com/backstagephp/filament-mails/pull/37
1010

11-
**Full Changelog**: https://github.com/vormkracht10/filament-mails/compare/v2.3.4...v2.3.5
11+
**Full Changelog**: https://github.com/backstagephp/filament-mails/compare/v2.3.4...v2.3.5
1212

1313
## New feature: Suppressions list with option to unsuppress email addresses - 2025-01-23
1414

1515
### What's Changed
1616

17-
* Suppressions list by @markvaneijk in https://github.com/vormkracht10/filament-mails/pull/11
17+
* Suppressions list by @markvaneijk in https://github.com/backstagephp/filament-mails/pull/11
1818

1919
### New Contributors
2020

21-
* @markvaneijk made their first contribution in https://github.com/vormkracht10/filament-mails/pull/11
21+
* @markvaneijk made their first contribution in https://github.com/backstagephp/filament-mails/pull/11
2222

23-
**Full Changelog**: https://github.com/vormkracht10/filament-mails/compare/v2.1.0...v2.2.0
23+
**Full Changelog**: https://github.com/backstagephp/filament-mails/compare/v2.1.0...v2.2.0
2424

2525
## v2.1.0 - 2025-01-22
2626

2727
### What's Changed
2828

29-
* [Fix] Format text to prevent stripping line breaks by @Baspa in https://github.com/vormkracht10/filament-mails/pull/14
30-
* [Fix] Define nullable parameter as nullable by @Baspa in https://github.com/vormkracht10/filament-mails/pull/15
31-
* fix: Dynamically determine if tenant is set by @Baspa in https://github.com/vormkracht10/filament-mails/pull/16
32-
* [Fix] Return empty array when $record's to, cc or bcc is empty (#18) by @vincentvankekerix in https://github.com/vormkracht10/filament-mails/pull/19
33-
* Update Pages to reflect configured resource class name by @Skullbock in https://github.com/vormkracht10/filament-mails/pull/20
29+
* [Fix] Format text to prevent stripping line breaks by @Baspa in https://github.com/backstagephp/filament-mails/pull/14
30+
* [Fix] Define nullable parameter as nullable by @Baspa in https://github.com/backstagephp/filament-mails/pull/15
31+
* fix: Dynamically determine if tenant is set by @Baspa in https://github.com/backstagephp/filament-mails/pull/16
32+
* [Fix] Return empty array when $record's to, cc or bcc is empty (#18) by @vincentvankekerix in https://github.com/backstagephp/filament-mails/pull/19
33+
* Update Pages to reflect configured resource class name by @Skullbock in https://github.com/backstagephp/filament-mails/pull/20
3434

3535
### New Contributors
3636

37-
* @vincentvankekerix made their first contribution in https://github.com/vormkracht10/filament-mails/pull/19
38-
* @Skullbock made their first contribution in https://github.com/vormkracht10/filament-mails/pull/20
37+
* @vincentvankekerix made their first contribution in https://github.com/backstagephp/filament-mails/pull/19
38+
* @Skullbock made their first contribution in https://github.com/backstagephp/filament-mails/pull/20
3939

40-
**Full Changelog**: https://github.com/vormkracht10/filament-mails/compare/v2.0.0...v2.1.0
40+
**Full Changelog**: https://github.com/backstagephp/filament-mails/compare/v2.0.0...v2.1.0
4141

4242
## v2.0.0 - 2025-01-03
4343

@@ -47,18 +47,18 @@ All notable changes to `filament-mails` will be documented in this file.
4747

4848
### What's Changed
4949

50-
* Install latest version instead of dev-main by @Baspa in https://github.com/vormkracht10/filament-mails/pull/5
51-
* Use Model from Config for Resource by @iAmKevinMcKee in https://github.com/vormkracht10/filament-mails/pull/7
52-
* [Fix] PHPStan issues by @Baspa in https://github.com/vormkracht10/filament-mails/pull/6
53-
* [Fix] Let user specify (tenant aware) routes by @Baspa in https://github.com/vormkracht10/filament-mails/pull/9
54-
* [Fix] Logging and downloading attachments by @Baspa in https://github.com/vormkracht10/filament-mails/pull/9
50+
* Install latest version instead of dev-main by @Baspa in https://github.com/backstagephp/filament-mails/pull/5
51+
* Use Model from Config for Resource by @iAmKevinMcKee in https://github.com/backstagephp/filament-mails/pull/7
52+
* [Fix] PHPStan issues by @Baspa in https://github.com/backstagephp/filament-mails/pull/6
53+
* [Fix] Let user specify (tenant aware) routes by @Baspa in https://github.com/backstagephp/filament-mails/pull/9
54+
* [Fix] Logging and downloading attachments by @Baspa in https://github.com/backstagephp/filament-mails/pull/9
5555

5656
### New Contributors
5757

58-
* @Baspa made their first contribution in https://github.com/vormkracht10/filament-mails/pull/5
59-
* @iAmKevinMcKee made their first contribution in https://github.com/vormkracht10/filament-mails/pull/7
58+
* @Baspa made their first contribution in https://github.com/backstagephp/filament-mails/pull/5
59+
* @iAmKevinMcKee made their first contribution in https://github.com/backstagephp/filament-mails/pull/7
6060

61-
**Full Changelog**: https://github.com/vormkracht10/filament-mails/compare/v1.0.1...v2.0.0
61+
**Full Changelog**: https://github.com/backstagephp/filament-mails/compare/v1.0.1...v2.0.0
6262

6363
## Bugfix - 2024-11-28
6464

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) vormkracht10 <[email protected]>
3+
Copyright (c) backstagephp <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Filament Mails
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/vormkracht10/filament-mails.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/filament-mails)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/vormkracht10/filament-mails/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/vormkracht10/filament-mails/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/vormkracht10/filament-mails/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/vormkracht10/filament-mails/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/vormkracht10/filament-mails.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/filament-mails)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/backstagephp/filament-mails.svg?style=flat-square)](https://packagist.org/packages/backstagephp/filament-mails)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/backstagephp/filament-mails/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/backstagephp/filament-mails/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/backstagephp/filament-mails/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/backstagephp/filament-mails/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/backstagephp/filament-mails.svg?style=flat-square)](https://packagist.org/packages/backstagephp/filament-mails)
77

8-
## Nice to meet you, we're [Vormkracht10](https://vormkracht10.nl)
8+
## Nice to meet you, we're [Backstage](https://backstagephp.com)
99

1010
Hi! We are a web development agency from Nijmegen in the Netherlands and we use Laravel for everything: advanced websites with a lot of bells and whistles and large web applications.
1111

@@ -29,16 +29,16 @@ Filament Mails can collect everything you might want to track about the mails th
2929

3030
Email as a protocol is very error prone. Succesfull email delivery is not guaranteed in any way, so it is best to monitor your email sending realtime. Using external services like Postmark, Mailgun or Resend email gets better by offering things like logging and delivery feedback, but it still needs your attention and can fail silently but horendously. Therefore we created Laravel Mails that fills in all the gaps.
3131

32-
The package is built on top of [Laravel Mails](https://github.com/vormkracht10/laravel-mails).
32+
The package is built on top of [Laravel Mails](https://github.com/backstagephp/laravel-mails).
3333

34-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/filament-mails.jpeg)
34+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/filament-mails.jpeg)
3535

3636
## Installation
3737

3838
You can install the package via composer:
3939

4040
```bash
41-
composer require vormkracht10/filament-mails
41+
composer require backstage/filament-mails
4242
```
4343

4444
You can publish and run the migrations with:
@@ -64,7 +64,7 @@ php artisan vendor:publish --tag="filament-mails-views"
6464
Add the routes to the PanelProvider using the `routes()` method, like this:
6565

6666
```php
67-
use Vormkracht10\FilamentMails\Facades\FilamentMails;
67+
use Backstage\FilamentMails\Facades\FilamentMails;
6868

6969
public function panel(Panel $panel): Panel
7070
{
@@ -76,7 +76,7 @@ public function panel(Panel $panel): Panel
7676
Then add the plugin to your `PanelProvider`
7777

7878
```php
79-
use Vormkracht10\FilamentMails\FilamentMailsPlugin;
79+
use Backstage\FilamentMails\FilamentMailsPlugin;
8080

8181
public function panel(Panel $panel): Panel
8282
{
@@ -90,8 +90,8 @@ public function panel(Panel $panel): Panel
9090
If you want to protect the mail routes with your (tenant) middleware, you can do so by adding the routes to the `tenantRoutes`:
9191

9292
```php
93-
use Vormkracht10\FilamentMails\FilamentMailsPlugin;
94-
use Vormkracht10\FilamentMails\Facades\FilamentMails;
93+
use Backstage\FilamentMails\FilamentMailsPlugin;
94+
use Backstage\FilamentMails\Facades\FilamentMails;
9595

9696
public function panel(Panel $panel): Panel
9797
{
@@ -102,7 +102,7 @@ public function panel(Panel $panel): Panel
102102
```
103103

104104
> [!IMPORTANT]
105-
> For setting up the webhooks to register mail events, please look into the README of [Laravel Mails](https://github.com/vormkracht10/laravel-mails), the underlying package that powers this package.
105+
> For setting up the webhooks to register mail events, please look into the README of [Laravel Mails](https://github.com/backstagephp/laravel-mails), the underlying package that powers this package.
106106
107107
### Configuration
108108

@@ -123,34 +123,34 @@ return [
123123
### List with all sent emails and statistics
124124

125125
The package provides a clear overview of all emails, including statistics and the ability to filter the data.
126-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mails-list.png)
126+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mails-list.png)
127127

128128
### Resending emails
129129

130130
You can resend emails to the same or another recipient(s). This is useful when your email has bounced and you want to resend it.
131-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-resend.png)
131+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-resend.png)
132132

133133
### Information
134134

135135
You can view all relevant information about the email, such as the subject, the body, the attachments, the from address, the to address(es), the cc address(es), the bcc address(es), the reply to address, metadata and much more.
136-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-sender-information.png)
137-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-statistics.png)
138-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-events.png)
139-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-attachments.png)
136+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-sender-information.png)
137+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-statistics.png)
138+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-events.png)
139+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-attachments.png)
140140

141141
### Preview email
142142

143143
The package provides a preview of the email. This is useful to quickly check if the email is correct.
144-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-preview.png)
144+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-preview.png)
145145

146146
We also provide the raw HTML and plain text of the email.
147-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-raw-html.png)
147+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-raw-html.png)
148148

149149
### Events
150150

151151
The package also logs all events that are fired when an email is sent. This is useful to track the email sending process.
152-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/events-list.png)
153-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/event-details.png)
152+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/events-list.png)
153+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/event-details.png)
154154

155155
## Testing
156156

@@ -172,7 +172,7 @@ Please review [our security policy](../../security/policy) on how to report secu
172172

173173
## Credits
174174

175-
- [Baspa](https://github.com/vormkracht10)
175+
- [Baspa](https://github.com/backstagephp)
176176
- [Mark van Eijk](https://github.com/markvaneijk)
177177
- [All Contributors](../../contributors)
178178

composer.json

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "vormkracht10/filament-mails",
2+
"name": "backstage/filament-mails",
33
"description": "View logged mails and events in a beautiful Filament UI.",
44
"keywords": [
5-
"vormkracht10",
5+
"backstagephp",
66
"laravel",
77
"filament-mails"
88
],
9-
"homepage": "https://github.com/vormkracht10/filament-mails",
9+
"homepage": "https://github.com/backstagephp/filament-mails",
1010
"support": {
11-
"issues": "https://github.com/vormkracht10/filament-mails/issues",
12-
"source": "https://github.com/vormkracht10/filament-mails"
11+
"issues": "https://github.com/backstagephp/filament-mails/issues",
12+
"source": "https://github.com/backstagephp/filament-mails"
1313
},
1414
"license": "MIT",
1515
"authors": [
@@ -20,31 +20,27 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^8.1",
24-
"filament/filament": "^3.0",
23+
"php": "^8.2",
24+
"filament/filament": "^4.0",
2525
"spatie/laravel-package-tools": "^1.15.0",
26-
"vormkracht10/laravel-mails": "^1.0"
26+
"backstage/laravel-mails": "^2.0"
2727
},
2828
"require-dev": {
29-
"laravel/pint": "^1.0",
30-
"nunomaduro/collision": "^7.9",
31-
"nunomaduro/larastan": "^2.0.1",
32-
"orchestra/testbench": "^8.0",
33-
"pestphp/pest": "^2.1",
34-
"pestphp/pest-plugin-arch": "^2.0",
35-
"pestphp/pest-plugin-laravel": "^2.0",
36-
"phpstan/extension-installer": "^1.1",
37-
"phpstan/phpstan-deprecation-rules": "^1.0",
38-
"phpstan/phpstan-phpunit": "^1.0"
29+
"laravel/pint": "^1.16",
30+
"nunomaduro/collision": "^8.8.0",
31+
"orchestra/testbench": "^9.0|^10.0",
32+
"pestphp/pest": "^3.7",
33+
"pestphp/pest-plugin-arch": "^3.1.0",
34+
"pestphp/pest-plugin-laravel": "^3.0"
3935
},
4036
"autoload": {
4137
"psr-4": {
42-
"Vormkracht10\\FilamentMails\\": "src/"
38+
"Backstage\\FilamentMails\\": "src/"
4339
}
4440
},
4541
"autoload-dev": {
4642
"psr-4": {
47-
"Vormkracht10\\FilamentMails\\Tests\\": "tests/"
43+
"Backstage\\FilamentMails\\Tests\\": "tests/"
4844
}
4945
},
5046
"scripts": {
@@ -65,13 +61,19 @@
6561
"extra": {
6662
"laravel": {
6763
"providers": [
68-
"Vormkracht10\\FilamentMails\\FilamentMailsServiceProvider"
64+
"Backstage\\FilamentMails\\FilamentMailsServiceProvider"
6965
],
7066
"aliases": {
71-
"FilamentMails": "Vormkracht10\\FilamentMails\\Facades\\FilamentMails"
67+
"FilamentMails": "Backstage\\FilamentMails\\Facades\\FilamentMails"
7268
}
7369
}
7470
},
7571
"minimum-stability": "dev",
76-
"prefer-stable": true
77-
}
72+
"prefer-stable": true,
73+
"repositories": {
74+
"backstage/laravel-mails": {
75+
"type": "vcs",
76+
"url": "[email protected]:backstagephp/laravel-mails.git"
77+
}
78+
}
79+
}

config/filament-mails.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Vormkracht10\FilamentMails\Resources\EventResource;
4-
use Vormkracht10\FilamentMails\Resources\MailResource;
5-
use Vormkracht10\FilamentMails\Resources\SuppressionResource;
3+
use Backstage\FilamentMails\Resources\EventResource;
4+
use Backstage\FilamentMails\Resources\MailResource;
5+
use Backstage\FilamentMails\Resources\SuppressionResource;
66

77
return [
88
'resources' => [

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
backupStaticProperties="false"
1717
>
1818
<testsuites>
19-
<testsuite name="Vormkracht10 Test Suite">
19+
<testsuite name="Backstage Test Suite">
2020
<directory>tests</directory>
2121
</testsuite>
2222
</testsuites>

src/Controllers/MailDownloadController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Vormkracht10\FilamentMails\Controllers;
3+
namespace Backstage\FilamentMails\Controllers;
44

5+
use Backstage\Mails\Models\MailAttachment;
56
use Illuminate\Routing\Controller;
67
use Illuminate\Support\Facades\Config;
78

@@ -17,7 +18,7 @@ public function __invoke(...$arguments)
1718
}
1819

1920
$attachmentModel = Config::get('mails.models.attachment');
20-
/** @var \Vormkracht10\Mails\Models\MailAttachment $attachment */
21+
/** @var MailAttachment $attachment */
2122
$attachment = $attachmentModel::find($attachment);
2223

2324
return $attachment->downloadFileFromStorage();

src/Controllers/MailPreviewController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Vormkracht10\FilamentMails\Controllers;
3+
namespace Backstage\FilamentMails\Controllers;
44

5+
use Backstage\Mails\Models\Mail;
56
use Illuminate\Http\Request;
67
use Illuminate\Routing\Controller;
7-
use Vormkracht10\Mails\Models\Mail;
88

99
class MailPreviewController extends Controller
1010
{

src/Facades/FilamentMails.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
namespace Vormkracht10\FilamentMails\Facades;
3+
namespace Backstage\FilamentMails\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

77
/**
8-
* @see \Vormkracht10\FilamentMails\FilamentMails
8+
* @see \Backstage\FilamentMails\FilamentMails
99
*/
1010
class FilamentMails extends Facade
1111
{
1212
protected static function getFacadeAccessor()
1313
{
14-
return \Vormkracht10\FilamentMails\FilamentMails::class;
14+
return \Backstage\FilamentMails\FilamentMails::class;
1515
}
1616
}

0 commit comments

Comments
 (0)