BroadcastController.php 470B

12345678910111213141516171819202122
  1. <?php
  2. namespace Illuminate\Broadcasting;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Routing\Controller;
  5. use Illuminate\Support\Facades\Broadcast;
  6. class BroadcastController extends Controller
  7. {
  8. /**
  9. * Authenticate the request for channel access.
  10. *
  11. * @param \Illuminate\Http\Request $request
  12. * @return \Illuminate\Http\Response
  13. */
  14. public function authenticate(Request $request)
  15. {
  16. return Broadcast::auth($request);
  17. }
  18. }