Merge pull request #2854 from EnesSacid-Buker/master
Landing page not found issue
This commit is contained in:
commit
1333ecc2f2
@ -3,6 +3,7 @@
|
|||||||
namespace App\Traits;
|
namespace App\Traits;
|
||||||
|
|
||||||
use App\Models\Auth\UserInvitation;
|
use App\Models\Auth\UserInvitation;
|
||||||
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
trait Users
|
trait Users
|
||||||
{
|
{
|
||||||
@ -102,7 +103,9 @@ trait Users
|
|||||||
return route('login');
|
return route('login');
|
||||||
}
|
}
|
||||||
|
|
||||||
$route_name = $user->isCustomer() ? 'portal.dashboard' : $user->landing_page;
|
$route_name = $user->isCustomer()
|
||||||
|
? 'portal.dashboard'
|
||||||
|
: (Route::has($user->landing_page) ? $user->landing_page : 'dashboard');
|
||||||
|
|
||||||
$company_id = company_id() ?: $this->getFirstCompanyOfUser()?->id;
|
$company_id = company_id() ?: $this->getFirstCompanyOfUser()?->id;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user