File tree Expand file tree Collapse file tree 3 files changed +7
-24
lines changed
Expand file tree Collapse file tree 3 files changed +7
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,6 +12,5 @@ class DashboardController extends Controller
1212 public function index ()
1313 {
1414 return redirect ()->route ('totem.tasks.all ' );
15- // return view('totem::dashboard');
1615 }
1716}
Original file line number Diff line number Diff line change 44
55use Studio \Totem \Task ;
66use Studio \Totem \Totem ;
7- use Studio \ Totem \Console \Kernel ;
7+ use Illuminate \ Contracts \Console \Kernel ;
88use Studio \Totem \Contracts \TaskInterface ;
99use Studio \Totem \Http \Requests \TaskRequest ;
1010
@@ -55,7 +55,9 @@ public function create()
5555 {
5656 return view ('totem::tasks.form ' , [
5757 'task ' => new Task ,
58- 'commands ' => $ this ->kernel ->getCommands (),
58+ 'commands ' => collect ($ this ->kernel ->all ())->sortBy (function ($ command ) {
59+ return $ command ->getDescription ();
60+ }),
5961 'timezones ' => timezone_identifiers_list (),
6062 'frequencies ' => Totem::frequencies (),
6163 ]);
@@ -99,7 +101,9 @@ public function edit($task)
99101 {
100102 return view ('totem::tasks.form ' , [
101103 'task ' => $ task ,
102- 'commands ' => $ this ->kernel ->getCommands (),
104+ 'commands ' => collect ($ this ->kernel ->all ())->sortBy (function ($ command ) {
105+ return $ command ->getDescription ();
106+ }),
103107 'timezones ' => timezone_identifiers_list (),
104108 'frequencies ' => Totem::frequencies (),
105109 ]);
You can’t perform that action at this time.
0 commit comments