PHP Classes

File: server/app/Http/Middleware/TrustHosts.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Wallet API and Application   server/app/Http/Middleware/TrustHosts.php   Download  
File: server/app/Http/Middleware/TrustHosts.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Wallet API and Application
Application to manage a wallet by calling an API
Author: By
Last change:
Date: 2 years ago
Size: 354 bytes
 

Contents

Class file image Download
<?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(),
        ];
    }
}