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
12
12
public function index ()
13
13
{
14
14
return redirect ()->route ('totem.tasks.all ' );
15
- // return view('totem::dashboard');
16
15
}
17
16
}
Original file line number Diff line number Diff line change 4
4
5
5
use Studio \Totem \Task ;
6
6
use Studio \Totem \Totem ;
7
- use Studio \ Totem \Console \Kernel ;
7
+ use Illuminate \ Contracts \Console \Kernel ;
8
8
use Studio \Totem \Contracts \TaskInterface ;
9
9
use Studio \Totem \Http \Requests \TaskRequest ;
10
10
@@ -55,7 +55,9 @@ public function create()
55
55
{
56
56
return view ('totem::tasks.form ' , [
57
57
'task ' => new Task ,
58
- 'commands ' => $ this ->kernel ->getCommands (),
58
+ 'commands ' => collect ($ this ->kernel ->all ())->sortBy (function ($ command ) {
59
+ return $ command ->getDescription ();
60
+ }),
59
61
'timezones ' => timezone_identifiers_list (),
60
62
'frequencies ' => Totem::frequencies (),
61
63
]);
@@ -99,7 +101,9 @@ public function edit($task)
99
101
{
100
102
return view ('totem::tasks.form ' , [
101
103
'task ' => $ task ,
102
- 'commands ' => $ this ->kernel ->getCommands (),
104
+ 'commands ' => collect ($ this ->kernel ->all ())->sortBy (function ($ command ) {
105
+ return $ command ->getDescription ();
106
+ }),
103
107
'timezones ' => timezone_identifiers_list (),
104
108
'frequencies ' => Totem::frequencies (),
105
109
]);
You can’t perform that action at this time.
0 commit comments