diff options
| author | Developer | 2026-06-27 02:47:40 +0200 |
|---|---|---|
| committer | Developer | 2026-06-27 02:47:40 +0200 |
| commit | 34ee983becfa088d0c39c4f0d9b35f038b351a78 (patch) | |
| tree | 25737516a97c596b8b88d2da8dfb0ded5a76a1b6 /routes/channels.php | |
| download | curious-34ee983becfa088d0c39c4f0d9b35f038b351a78.tar.gz | |
feat: add cinema module for browsing movies from hncrawler DB
- Add 'cinema' database connection (hncrawler DB) to config/database.php
- Create CinemaController with cinema(), show(), search() methods
- Add /cinema, /cinema/movie/{imdb_id}, /cinema/search routes
- Create cinema.blade.php (grid listing with posters, ratings, pagination)
- Create cinema-show.blade.php (detail page with cast, genres, synopsis)
- Add Cinema link to navbar
- Update page title logic for cinema routes
Diffstat (limited to 'routes/channels.php')
| -rw-r--r-- | routes/channels.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/routes/channels.php b/routes/channels.php new file mode 100644 index 0000000..963b0d2 --- /dev/null +++ b/routes/channels.php @@ -0,0 +1,18 @@ +<?php + +use Illuminate\Support\Facades\Broadcast; + +/* +|-------------------------------------------------------------------------- +| Broadcast Channels +|-------------------------------------------------------------------------- +| +| Here you may register all of the event broadcasting channels that your +| application supports. The given channel authorization callbacks are +| used to check if an authenticated user can listen to the channel. +| +*/ + +Broadcast::channel('App.User.{id}', function ($user, $id) { + return (int) $user->id === (int) $id; +}); |
