Skip to content

Commit 882dbf1

Browse files
committed
added routes back
1 parent 26700ef commit 882dbf1

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

routes/channels.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
});

routes/console.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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');

0 commit comments

Comments
 (0)