File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /*
3
+ |--------------------------------------------------------------------------
4
+ | Broadcast Channels
5
+ |--------------------------------------------------------------------------
6
+ |
7
+ | Here you may register all of the event broadcasting channels that your
8
+ | application supports. The given channel authorization callbacks are
9
+ | used to check if an authenticated user can listen to the channel.
10
+ |
11
+ */
12
+ Broadcast::channel ('App.User.{id} ' , function ($ user , $ id ) {
13
+ return (int ) $ user ->id === (int ) $ id ;
14
+ });
Original file line number Diff line number Diff line change
1
+ <?php
2
+ use Illuminate \Foundation \Inspiring ;
3
+ /*
4
+ |--------------------------------------------------------------------------
5
+ | Console Routes
6
+ |--------------------------------------------------------------------------
7
+ |
8
+ | This file is where you may define all of your Closure based console
9
+ | commands. Each Closure is bound to a command instance allowing a
10
+ | simple approach to interacting with each command's IO methods.
11
+ |
12
+ */
13
+ Artisan::command ('inspire ' , function () {
14
+ $ this ->comment (Inspiring::quote ());
15
+ })->describe ('Display an inspiring quote ' );
You can’t perform that action at this time.
0 commit comments