|
@@ 37-42 (lines=6) @@
|
| 34 |
|
|
| 35 |
|
$models = array(); |
| 36 |
|
$namespace = 'App\\'; |
| 37 |
|
foreach($files as $file) { |
| 38 |
|
// skip current and parent folder entries and non-php files |
| 39 |
|
if (preg_match("/.php/",$file)){ |
| 40 |
|
$models[] = $namespace . preg_replace("/.php/", "", $file); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
return view('workflow.workflow.create',compact('models')); |
| 44 |
|
} |
| 45 |
|
|
|
@@ 80-85 (lines=6) @@
|
| 77 |
|
|
| 78 |
|
$models = array(); |
| 79 |
|
$namespace = 'App\\'; |
| 80 |
|
foreach($files as $file) { |
| 81 |
|
// skip current and parent folder entries and non-php files |
| 82 |
|
if (preg_match("/.php/",$file)){ |
| 83 |
|
$models[] = $namespace . preg_replace("/.php/", "", $file); |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
$workflow = WorkflowModel::where('id',$id)->first(); |
| 87 |
|
|
| 88 |
|
return view('workflow.workflow.edit',compact('workflow','models')); |