Replies: 2 comments 2 replies
-
|
Yes, I am working on a pull request that will support multiple guards, for now here is what you can do; Add this code in $this->app->booted(function () {
$this->registerMasonRoutes();
});where the /**
* Register Mason routes with admin guard authentication.
*/
protected function registerMasonRoutes(): void
{
Route::post('/mason/preview', function (Request $request) {
return app(\Awcodes\Mason\Http\Controllers\MasonController::class)->preview($request);
})
->name('mason.preview')
->middleware(['web', 'auth:admin']);
Route::post('/mason/entry', [\Awcodes\Mason\Http\Controllers\MasonController::class, 'entry'])
->name('mason.entry')
->middleware(['web', 'auth:admin']);
}Let me know if that helps |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
This should be resolved with v3.0.4. just update the middleware in the config file. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there.
I'm currently working on an app that has client login as well as admin login.
Admin login controls the data on the website, similar to a CMS.
Client login just gives access to additional features.
Filament is using the admin gate, but when I load in the content its showing me the client login

Is there a way I can get it to use the different gage?
thanks!
Beta Was this translation helpful? Give feedback.
All reactions