Soumission initiale
This commit is contained in:
		
							
								
								
									
										20
									
								
								app/Http/Middleware/TrustHosts.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								app/Http/Middleware/TrustHosts.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,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(),
 | 
			
		||||
        ];
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user