File: /var/www/vhost/disk-apps/alq-cali.bikenow.co/app/Notification.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\User;
class Notification extends Model
{
use SoftDeletes;
protected $dates = ['deleted_at'];
public function admin(){
return $this->belongsTo(User::class,'admin_id');
}
public function user(){
return $this->belongsTo(User::class);
}
public function target_notification(){
return $this->belongsTo(TargetNotification::class);
}
}