mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 08:47:32 -05: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) 2021. 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');
 | 
						|
    }
 | 
						|
}
 |