File: /var/www/ipsremont-demo/app/Models/Notification.php
<?php
namespace App\Models;
use App\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property int $user_id
* @property int $branch_id
* @property string $text
* @property string $created_at
*
* @property User $user
*/
class Notification extends Model
{
const UPDATED_AT = null;
protected $fillable = [
'user_id',
'branch_id',
'text',
];
public function user(): BelongsTo
{
return $this->belongsTo(User::class)->withTrashed();
}
}