generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
83 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
// config for Tapp/FilamentMaillog | ||
// config for Tapp/FilamentMailLog | ||
return [ | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
database/migrations/create_filament_mail_log_table.php.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
public function up() | ||
{ | ||
Schema::create('mail_logs', function (Blueprint $table) { | ||
$table->increments('id'); | ||
$table->dateTime('date'); | ||
$table->string('from')->nullable(); | ||
$table->string('to')->nullable(); | ||
$table->string('cc')->nullable(); | ||
$table->string('bcc')->nullable(); | ||
$table->string('subject'); | ||
$table->text('body'); | ||
$table->text('headers')->nullable(); | ||
$table->longText('attachments')->nullable(); | ||
$table->uuid('message_id')->nullable(); | ||
$table->string('status')->nullable(); | ||
$table->longText('data')->nullable(); | ||
$table->timestamp('opened')->nullable(); | ||
$table->timestamp('delivered')->nullable(); | ||
$table->timestamp('complaint')->nullable(); | ||
$table->timestamp('bounced')->nullable(); | ||
|
||
$table->timestamps(); | ||
|
||
$table->index('message_id'); | ||
$table->index('status'); | ||
}); | ||
} | ||
}; |
19 changes: 0 additions & 19 deletions
19
database/migrations/create_filament_maillog_table.php.stub
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<?php | ||
|
||
namespace Tapp\FilamentMaillog\Facades; | ||
namespace Tapp\FilamentMailLog\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
/** | ||
* @see \Tapp\FilamentMaillog\FilamentMaillog | ||
* @see \Tapp\FilamentMailLog\FilamentMailLog | ||
*/ | ||
class FilamentMaillog extends Facade | ||
class FilamentMailLog extends Facade | ||
{ | ||
protected static function getFacadeAccessor(): string | ||
{ | ||
return \Tapp\FilamentMaillog\FilamentMaillog::class; | ||
return \Tapp\FilamentMailLog\FilamentMailLog::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Tapp\FilamentMailLog; | ||
|
||
class FilamentMailLog | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Tapp\Models; | ||
|
||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class MailLog extends Model | ||
{ | ||
use HasFactory; | ||
|
||
protected $guarded = []; | ||
|
||
protected $casts = [ | ||
'data' => 'array', | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
|
||
use Tapp\FilamentMaillog\Tests\TestCase; | ||
use Tapp\FilamentMailLog\Tests\TestCase; | ||
|
||
uses(TestCase::class)->in(__DIR__); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters