Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Письменов Дмитрий Иванович / yourroomads

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • yourroomads
  • app
  • Http
  • Middleware
  • TrustHosts.php
  • Jonathan Reinink's avatar
    Update middleware · c2e99b97
    Jonathan Reinink committed Jul 29, 2020
    c2e99b97
TrustHosts.php 354 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php

namespace App\Http\Middleware;

use Illuminate\Http\Middleware\TrustHosts as Middleware;

class TrustHosts extends Middleware
{
    /**
     * Get the host patterns that should be trusted.
     *
     * @return array
     */
    public function hosts()
    {
        return [
            $this->allSubdomainsOfApplicationUrl(),
        ];
    }
}