feat(Notification & membership route)
This commit is contained in:
@@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
@@ -63,7 +64,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
*/
|
||||
class Member extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, Notifiable;
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'keycloak_id',
|
||||
|
||||
@@ -59,7 +59,7 @@ class Membership extends Model
|
||||
|
||||
public static function getAttributeLabel(string $attribute): string
|
||||
{
|
||||
return __("membership.fields.$attribute");
|
||||
return __("memberships.fields.$attribute");
|
||||
}
|
||||
|
||||
public function member(): BelongsTo
|
||||
|
||||
Reference in New Issue
Block a user