/** * Return the principal fax. * @return AxC\DataManagement\Models\Fax */ public function principal() { return FaxModel::principal(); }
/** * Add data to DB scheme * @return null; */ public function run() { Fax::truncate(); $pos = 1; Fax::create(['type' => 'work', 'position' => $pos++, 'published' => true, 'number' => '(+39) 0143-32.00.59', 'principal' => true]); }