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
+26 -1
View File
@@ -6,5 +6,30 @@ use Illuminate\Database\Eloquent\Model;
class Bid extends Model
{
//
// Table Name
public $table = 'contract_bids';
// Timestamps
public $timestamps = false;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'contract_id',
'bid',
'accepted',
];
protected $guarded = [];
public function ContractId() {
return $this->hasOne('App\Models\Contracts\Contract', 'id', 'contract_id');
}
public function Contract() {
return $this->belongsTo(Contract::class);
}
}