|
1 | 1 | <?php |
2 | 2 |
|
| 3 | +namespace Lucid\Console; |
| 4 | + |
3 | 5 | Route::group(['prefix' => 'lucid'], function () { |
4 | 6 |
|
5 | 7 | // UI Navigation Routes |
|
39 | 41 | }); |
40 | 42 |
|
41 | 43 | Route::post('/services', function () { |
42 | | - return app(Lucid\Console\Generators\ServiceGenerator::class)->generate(request()->input('name'))->toArray(); |
| 44 | + return app(\Lucid\Console\Generators\ServiceGenerator::class)->generate(request()->input('name'))->toArray(); |
43 | 45 | }); |
44 | 46 |
|
45 | 47 | Route::get('/features/{name}', function ($name) { |
|
67 | 69 | $title = request()->input('title'); |
68 | 70 | $domain = request()->input('domain'); |
69 | 71 |
|
70 | | - return app(Lucid\Console\Generators\JobGenerator::class)->generate($title, $domain)->toArray(); |
| 72 | + return app(\Lucid\Console\Generators\JobGenerator::class)->generate($title, $domain)->toArray(); |
71 | 73 | }); |
72 | 74 |
|
73 | 75 | Route::post('/features', function () { |
|
76 | 78 | $service = request()->input('service'); |
77 | 79 | $jobs = request()->input('jobs'); |
78 | 80 |
|
79 | | - return app(Lucid\Console\Generators\FeatureGenerator::class)->generate($title, $service, $jobs)->toArray(); |
| 81 | + return app(\Lucid\Console\Generators\FeatureGenerator::class)->generate($title, $service, $jobs)->toArray(); |
80 | 82 | }); |
81 | 83 |
|
82 | 84 | Route::get('/logs', function () { |
83 | | - $reader = app(Stevebauman\LogReader\LogReader::class); |
| 85 | + $reader = app(\Stevebauman\LogReader\LogReader::class); |
84 | 86 |
|
85 | 87 | if (request()->has('level')) { |
86 | 88 | $reader->level(request()->input('level')); |
|
91 | 93 | }); |
92 | 94 |
|
93 | 95 | Route::put('/logs/{id}/read', function ($id) { |
94 | | - app(Stevebauman\LogReader\LogReader::class)->find($id)->markRead(); |
| 96 | + app(\Stevebauman\LogReader\LogReader::class)->find($id)->markRead(); |
95 | 97 | }); |
96 | 98 |
|
97 | 99 | Route::get('/analysis', function () { |
98 | | - return (new Lucid\Console\Analyser())->analyse(); |
| 100 | + return (new \Lucid\Console\Analyser())->analyse(); |
99 | 101 | }); |
100 | 102 |
|
101 | 103 | }); |
102 | 104 |
|
103 | 105 | class Controller |
104 | 106 | { |
105 | | - use Lucid\Console\Finder; |
| 107 | + use Finder; |
106 | 108 | } |
0 commit comments