updates
This commit is contained in:
@@ -15,8 +15,8 @@ class IsBoardingFlow
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
ray('IsBoardingFlow Middleware');
|
||||
if (showBoarding() && !in_array($request->path(), allowedPaths())) {
|
||||
// ray('IsBoardingFlow Middleware');
|
||||
if (showBoarding() && !in_array($request->path(), allowedPathsForBoardingAccounts())) {
|
||||
return redirect('boarding');
|
||||
}
|
||||
return $next($request);
|
||||
|
||||
@@ -27,7 +27,7 @@ class SubscriptionValid
|
||||
}
|
||||
if (!isSubscriptionActive() && !isSubscriptionOnGracePeriod()) {
|
||||
// ray('SubscriptionValid Middleware');
|
||||
if (!in_array($request->path(), allowedPaths())) {
|
||||
if (!in_array($request->path(), allowedPathsForUnsubscribedAccounts())) {
|
||||
return redirect('subscription');
|
||||
} else {
|
||||
return $next($request);
|
||||
|
||||
Reference in New Issue
Block a user