contract admin controller start

This commit is contained in:
2019-04-25 01:27:47 -05:00
parent 0c2207029f
commit b367e2a166
3 changed files with 58 additions and 5 deletions
+22 -1
View File
@@ -6,5 +6,26 @@ use Illuminate\Database\Eloquent\Model;
class Contract extends Model
{
//
// Table Name
public $table = 'contracts';
// Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'title',
'date',
'body',
];
protected $guarded = [];
public function Bids() {
return $this->hasMany('App\Models\Contracts\Bid', 'contract_id', 'id');
}
}