mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-02 22:57:33 -05:00 
			
		
		
		
	Fixes for setup
This commit is contained in:
		
							parent
							
								
									29a1ccefb7
								
							
						
					
					
						commit
						a829db9890
					
				@ -20,6 +20,7 @@ use App\Jobs\Util\VersionCheck;
 | 
				
			|||||||
use App\Models\Account;
 | 
					use App\Models\Account;
 | 
				
			||||||
use App\Utils\CurlUtils;
 | 
					use App\Utils\CurlUtils;
 | 
				
			||||||
use App\Utils\SystemHealth;
 | 
					use App\Utils\SystemHealth;
 | 
				
			||||||
 | 
					use App\Utils\Traits\AppSetup;
 | 
				
			||||||
use DB;
 | 
					use DB;
 | 
				
			||||||
use Exception;
 | 
					use Exception;
 | 
				
			||||||
use Illuminate\Contracts\Foundation\Application;
 | 
					use Illuminate\Contracts\Foundation\Application;
 | 
				
			||||||
@ -37,6 +38,8 @@ use Spatie\Browsershot\Browsershot;
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
class SetupController extends Controller
 | 
					class SetupController extends Controller
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    use AppSetup;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function index()
 | 
					    public function index()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $check = SystemHealth::check(false);
 | 
					        $check = SystemHealth::check(false);
 | 
				
			||||||
@ -128,6 +131,8 @@ class SetupController extends Controller
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            VersionCheck::dispatchNow();
 | 
					            VersionCheck::dispatchNow();
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
 | 
					            $this->buildCache();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return redirect('/');
 | 
					            return redirect('/');
 | 
				
			||||||
        } catch (Exception $e) {
 | 
					        } catch (Exception $e) {
 | 
				
			||||||
            info($e->getMessage());
 | 
					            info($e->getMessage());
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user