391 Notification refactorings (#441)
* Refactor notifications to allow easier plugins * Notification refactoring * Formatting * Move news to NewsService; cleanup of events * More refactoring; added send email out for news item and the template * Formatting * Formatting
This commit is contained in:
15
app/Events/NewsAdded.php
Normal file
15
app/Events/NewsAdded.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\News;
|
||||
|
||||
class NewsAdded extends BaseEvent
|
||||
{
|
||||
public $news;
|
||||
|
||||
public function __construct(News $news)
|
||||
{
|
||||
$this->news = $news;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user