add stripe subscription

This commit is contained in:
Andras Bacsai committed 2023-08-24 16:14:09 +02:00
1 parent 2d8f166e4a
commit 39890b319a
36 files changed
+753 -121

No files matched your search

+2 -6
View File
@@ -15,12 +15,8 @@ class IsBoardingFlow
*/
public function handle(Request $request, Closure $next): Response
{
$allowed_paths = [
'subscription',
'boarding',
'livewire/message/boarding'
];
if (showBoarding() && !in_array($request->path(), $allowed_paths)) {
ray('IsBoardingFlow Middleware');
if (showBoarding() && !in_array($request->path(), allowedPaths())) {
return redirect('boarding');
}
return $next($request);