Initial commit
This commit is contained in:
commit
9d73f82529
5575 files changed
+281989
No files matched your search
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