<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use App\Models\User; class AdminNotification extends Model { use HasFactory; protected $fillable = ['user_id','type','massege','data','reciver']; public function user(){ return $this->belongsTo(User::class,'user_id', 'id'); } }