Installer updates

Added probe.php
Added new installer views and controllers
Updated AuthController
Updated Middlewares
Updated Commands for installation process
This commit is contained in:
Manish Verma
2018-08-07 13:45:46 +05:30
parent 1ac0f42a58
commit 22d3bb4036
28 changed files with 1197 additions and 405 deletions

View File

@@ -22,7 +22,7 @@ use Auth;
use DateTime;
use DB;
use Hash;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use Illuminate\Http\Request;
use Lang;
use Socialite;
@@ -38,7 +38,6 @@ use Socialite;
*/
class AuthController extends Controller
{
use AuthenticatesAndRegistersUsers;
/* to redirect after login */
// if auth is agent
@@ -644,4 +643,27 @@ class AuthController extends Controller
\Session::set($provider.'redirect', $url);
$this->changeRedirect();
}
/**
* Log the user out of the application.
*
* @return \Illuminate\Http\Response
*/
public function getLogout(Request $request)
{
\Event::fire('user.logout', []);
$login = new LoginController();
return $login->logout($request);
}
public function redirectPath()
{
$auth = Auth::user();
if ($auth && $auth->role != 'user') {
return 'dashboard';
} else {
return '/';
}
}
}