관리-도구
편집 파일: Notifications.php
<?php namespace App\Models; use App\Library\Traits\HasUid; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * @method static where(string $string, string $uid) * @method static create(array $array) */ class Notifications extends Model { use HasUid; protected $fillable = [ 'user_id', 'notification_for', 'notification_type', 'message', 'mark_read', ]; /** * get user * * @return BelongsTo * */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }