Make company ID nullable

This commit is contained in:
snipe 2016-12-14 11:12:21 -08:00
parent 030207d626
commit 30bc3cbe9b

View file

@ -23,12 +23,12 @@ class License extends Depreciable
protected $table = 'licenses'; protected $table = 'licenses';
protected $rules = array( protected $rules = array(
'name' => 'required|string|min:3|max:255', 'name' => 'required|string|min:3|max:255',
'seats' => 'required|min:1|max:10000|integer', 'seats' => 'required|min:1|max:1000000|integer',
'license_email' => 'email|min:0|max:120', 'license_email' => 'email|min:0|max:120',
'license_name' => 'string|min:0|max:100', 'license_name' => 'string|min:0|max:100',
'note' => 'string', 'note' => 'string',
'notes' => 'string|min:0', 'notes' => 'string|min:0',
'company_id' => 'integer', 'company_id' => 'integer|nullable',
); );
public function company() public function company()