You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
383 B

2 years ago
<?php
namespace App\Models;
use App\Admin;
class AskSubmit extends SoftDeletesModel
{
protected $table = "ask_submits";
protected $casts = ['content'=>'json'];
public function admin()
{
return $this->hasOne(Admin::class,'id','admin_id');
}
public function project()
{
return $this->hasOne(Project::class,'id','project_id');
}
}