sdousley
sdousley
FFilament
Created by sdousley on 1/8/2025 in #❓┊help
logout going to http
OK, got it fixed, I had to use the forceScheme to https in AppServiceProvider
8 replies
FFilament
Created by sdousley on 1/8/2025 in #❓┊help
logout going to http
Oh no, it is all links that are http, they just redirect to https
8 replies
FFilament
Created by sdousley on 1/8/2025 in #❓┊help
logout going to http
though not sure if that's the issue, as it's (as far as I can tell) only the signout "form" that gets the http url
8 replies
FFilament
Created by sdousley on 1/8/2025 in #❓┊help
logout going to http
Ah, we do have HAProxy in front of the sites, so that connects over HTTP
8 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
from my non-default panel
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
OK, yeah, so I was missing
->authMiddleware([
Authenticate::class,
])
->authMiddleware([
Authenticate::class,
])
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
so is there something I need to put on each panel for that to work
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
changed false to true, and it worked
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
ok, so I just went back to my default, and the return false gave me a 403
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
if i
dd(App::environment());
dd(App::environment());
within that, I get "production" back
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
public function canAccessPanel(Panel $panel): bool
{
return false;
}
public function canAccessPanel(Panel $panel): bool
{
return false;
}
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
I even just have it return false, and it still works
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
Ah yeah, I did notice that, and change that (not that I cach anything locally in dev, but cleared cache anyway) and still just lets me view the panel
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
it is, if I dd() something in there, I see that happen
18 replies
FFilament
Created by cobrABite on 1/12/2024 in #❓┊help
Restrict user access to different panels based on roles
Sorry to jump on a slightly older post - but I've done this, and implemented the canAcecssPanel method. However, even if it returns false, it still allows the user to see the panel
18 replies
FFilament
Created by sdousley on 12/9/2024 in #❓┊help
belongsToMany column cannot be null
or if I change 'Test 2' to $g->name it attaches (doesn't add other pivot values to the pivot table I want, but that's another issue
25 replies
FFilament
Created by sdousley on 12/9/2024 in #❓┊help
belongsToMany column cannot be null
Well, this is odd, I've just done this
Route::get('/', function (\Illuminate\Http\Request $request) {
$g = \App\Models\Radius\Group::where('name', '=', 'Test 2')
->first();
$c = \App\Models\Radius\Check::first();

$c->groups()->attach('Test 2');
dd($g, $c);
});
Route::get('/', function (\Illuminate\Http\Request $request) {
$g = \App\Models\Radius\Group::where('name', '=', 'Test 2')
->first();
$c = \App\Models\Radius\Check::first();

$c->groups()->attach('Test 2');
dd($g, $c);
});
and that attaches the model fine, but if I change the argument passed to attach() to $g, it gets the value cannot be null again
25 replies
FFilament
Created by sdousley on 12/9/2024 in #❓┊help
belongsToMany column cannot be null
groups table*
25 replies
FFilament
Created by sdousley on 12/9/2024 in #❓┊help
belongsToMany column cannot be null
but with just name on the groups column
25 replies
FFilament
Created by sdousley on 12/9/2024 in #❓┊help
belongsToMany column cannot be null
OK, so I'm back to where I was before getting value cannot be null
25 replies