mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-26 15:02:53 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			702 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			702 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * Invoice Ninja (https://invoiceninja.com).
 | |
|  *
 | |
|  * @link https://github.com/invoiceninja/invoiceninja source repository
 | |
|  *
 | |
|  * @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
 | |
|  *
 | |
|  * @license https://www.elastic.co/licensing/elastic-license
 | |
|  */
 | |
| 
 | |
| namespace App\Http\Middleware;
 | |
| 
 | |
| use Illuminate\Auth\Middleware\Authenticate as Middleware;
 | |
| use Illuminate\Http\Request;
 | |
| 
 | |
| class Authenticate extends Middleware
 | |
| {
 | |
|     /**
 | |
|      * Get the path the user should be redirected to when they are not authenticated.
 | |
|      *
 | |
|      * @param  Request  $request
 | |
|      * @return string
 | |
|      */
 | |
|     protected function redirectTo($request)
 | |
|     {
 | |
|         return route('client.login');
 | |
|     }
 | |
| }
 |