@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace BeyondCode\LaravelWebSockets\Database\Console; |
4 | 4 | |
5 | 5 | use BeyondCode\LaravelWebSockets\Database\Models\App; |
6 | -use Carbon\Carbon; |
|
7 | 6 | use Illuminate\Console\Command; |
8 | -use Illuminate\Database\Eloquent\Builder; |
|
9 | 7 | |
10 | 8 | class AppCreate extends Command |
11 | 9 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * Store a newly created resource in storage. |
42 | 42 | * |
43 | 43 | * @param StoreWebSocketsApp $request |
44 | - * @return \Illuminate\Http\Response |
|
44 | + * @return \Illuminate\Http\RedirectResponse |
|
45 | 45 | */ |
46 | 46 | public function store(StoreWebSocketsApp $request) |
47 | 47 | { |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * |
75 | 75 | * @param StoreWebSocketsApp $request |
76 | 76 | * @param App $app |
77 | - * @return \Illuminate\Http\Response |
|
77 | + * @return \Illuminate\Http\RedirectResponse |
|
78 | 78 | */ |
79 | 79 | public function update(StoreWebSocketsApp $request, App $app) |
80 | 80 | { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * Remove the specified resource from storage. |
92 | 92 | * |
93 | 93 | * @param App $app |
94 | - * @return \Illuminate\Http\Response |
|
94 | + * @return \Illuminate\Http\RedirectResponse |
|
95 | 95 | */ |
96 | 96 | public function destroy(App $app) |
97 | 97 | { |
@@ -2,21 +2,21 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\LaravelWebSockets; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\Gate; |
|
6 | -use Illuminate\Support\Facades\Route; |
|
7 | -use Illuminate\Support\ServiceProvider; |
|
8 | -use BeyondCode\LaravelWebSockets\Server\Router; |
|
9 | 5 | use BeyondCode\LaravelWebSockets\Apps\AppProvider; |
10 | -use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager; |
|
11 | -use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\SendMessage; |
|
12 | -use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowDashboard; |
|
13 | 6 | use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\AuthenticateDashboard; |
14 | 7 | use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\DashboardApiController; |
15 | -use BeyondCode\LaravelWebSockets\Database\Http\Controllers\AppsController; |
|
16 | -use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager; |
|
8 | +use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\SendMessage; |
|
9 | +use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowDashboard; |
|
17 | 10 | use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize as AuthorizeDashboard; |
18 | -use BeyondCode\LaravelWebSockets\Statistics\Http\Middleware\Authorize as AuthorizeStatistics; |
|
11 | +use BeyondCode\LaravelWebSockets\Database\Http\Controllers\AppsController; |
|
12 | +use BeyondCode\LaravelWebSockets\Server\Router; |
|
19 | 13 | use BeyondCode\LaravelWebSockets\Statistics\Http\Controllers\WebSocketStatisticsEntriesController; |
14 | +use BeyondCode\LaravelWebSockets\Statistics\Http\Middleware\Authorize as AuthorizeStatistics; |
|
15 | +use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager; |
|
16 | +use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager; |
|
17 | +use Illuminate\Support\Facades\Gate; |
|
18 | +use Illuminate\Support\Facades\Route; |
|
19 | +use Illuminate\Support\ServiceProvider; |
|
20 | 20 | |
21 | 21 | class WebSocketsServiceProvider extends ServiceProvider |
22 | 22 | { |