Files
w4rpservices/app/Models/Contracts/Contract.php

32 lines
537 B
PHP

<?php
namespace App;
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');
}
}