Beispiel #1
0
     $work->save();
 }
 $description = 'The Task table needs three additional columns.';
 if (is_null($work = Work::checkIfExists($description))) {
     // get $project->id
     $project = Project::where('name', '=', 'Magento Development')->first();
     // get $project->id
     $workType = WorkType::where('type', '=', 'Atlassian Ticket')->first();
     $work = new Work();
     $work->work_type_description = $description;
     $work->project_id = $project->id;
     $work->work_type_id = $workType->id;
     $work->save();
 }
 $description = 'A new landing page is required to support Fall 2016 GNO.';
 if (is_null($work = Work::checkIfExists($description))) {
     // get $project->id
     $project = Project::where('name', '=', 'Magento Development')->first();
     // get $project->id
     $workType = WorkType::where('type', '=', 'Feature')->first();
     $work = new Work();
     $work->work_type_description = $description;
     $work->project_id = $project->id;
     $work->work_type_id = $workType->id;
     $work->save();
 }
 /*******************************************************************************************************************
  * time_card insert(s)
  ******************************************************************************************************************/
 // get $work->id
 $work = Work::where('work_type_description', '=', 'The catalog view is performing too slowly.')->first();