/** * Find a model by their id. * * @param $id * @return mixed */ public function findById($id) { return Exam::findOrFail($id); }
/** * Run the database seeds. * * @return void */ public function run() { \Model\Exam\Exam::truncate(); // factory(\Model\Exam\Exam::class, 10)->create(); }