/** * @param $projectId * @return mixed */ public function create($projectId) { $param['pageNo'] = 1; $param['projectId'] = $projectId; $param['tasks'] = TaskModel::get(); $param['skills'] = SkillModel::lists('name', 'name'); return View::make('company.task.create')->with($param); }
public function run() { DB::table('skills'); skill::insert([array('name' => 'Java'), array('name' => 'Html'), array('name' => 'Mysql'), array('name' => 'C'), array('name' => 'Javascript'), array('name' => 'Python'), array('name' => 'Ruby')]); }