DbUpdateService.php 491 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Services;
  3. class DbUpdateService
  4. {
  5. public function checkIsSkipDbUpdate()
  6. {
  7. switch (env('IS_SKIP_DBUPDATE')) {
  8. case '1':
  9. return $this->redirectDashboard();
  10. case '0':
  11. case '9':
  12. return redirect()->route('db-update.index');
  13. }
  14. }
  15. public function redirectDashboard()
  16. {
  17. session()->put('user.is_member', true);
  18. return redirect()->route('dashboard');
  19. }
  20. }