Missing required parameter for [Route: filament.app.pages.edit-profile] [URI: app/team/{tenant}/edit-profile] [Missing parameter: tenant]. #12019
Answered
by
devhoussam1998
devhoussam1998
asked this question in
Help
Replies: 4 comments 4 replies
-
EditProfile::getUrl(['tenant' => Filament::getTenant()->id ?? 0]) ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I get the same error in a controller: seems @devhoussam1998, did you manage to solve it? If not, try |
Beta Was this translation helpful? Give feedback.
3 replies
-
Here you are...
<?php
namespace App\Http\Middleware;
use Closure;
use Filament\Facades\Filament;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class RememberTenant
{
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
*/
public function handle(Request $request, Closure $next): Response
{
$request->session()->put('tenant_id', Filament::getTenant()->id);
return $next($request);
}
}
->tenantMiddleware(
[
...
RememberTenant::class,
],
isPersistent: true
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
devhoussam1998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Panel builder
Package Version
v3.2.59
How can we help you?
Beta Was this translation helpful? Give feedback.
All reactions