public function pstore(Request $request) { $input = new project(); $input->user_id = $request->user_id; $input->title = $request->title; $input->supervisor = $request->supervisor; $input->url = $request->url; $input->pmember = $request->member; $input->date = $request->date; $input->description = $request->description; $input->save(); return redirect('project-test'); }
public function run() { DB::table('project'); project::create(['company_id' => '5', 'name' => 'JPEG Manipulator', 'status' => 'Open', 'description' => '<p>JPEG is a format of image. We need to create a desktop program to allow user do following actions:</p><ul><li>Open a JPEG</li><li>Rotate a JPEG</li><li>Flip a JPEG</li><li>Save (Save as) a JPEG</li></ul><p>Rotation and flip needs to be lossless in quality. For example, if you rotate a JPEG 90 degree for 4 rounds, the newly saved JPEG file should be exactly the same with the original JPEG file.</p>', 'skills' => 'img/java img/php img/c++', 'difficulty' => 'Medium', 'environment' => 'You can choose C++, Java, or C#, whichever one you prefer, to develop the desktop application. Here are some recommended IDEs: C++: Visual Studio Java: Eclipse, NetBean C#: Visual Studio', 'id' => 2]); }
public function edit($id) { $param['pageNo'] = 1; $result = ProjectModel::find($id); $param['projects'] = $result; return View::make('company.project.edit')->with($param); }