You've already forked Atomcms-edit
Initial commit
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models\Compositions;
|
||||
|
||||
interface HasBadge
|
||||
{
|
||||
public function getBadgePath(): string;
|
||||
|
||||
public function getBadgeName(): string;
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models\Compositions;
|
||||
|
||||
trait HasNotificationUrl
|
||||
{
|
||||
public function getNotificationUrl(): string
|
||||
{
|
||||
return route('articles.show', [$this->id, $this->slug]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user