Replies: 9 comments 2 replies
-
The error I am getting is 404 |
Beta Was this translation helpful? Give feedback.
-
Check this if you haven’t https://filamentphp.com/docs/2.x/admin/installation#deploying-to-production |
Beta Was this translation helpful? Give feedback.
-
Great, thank you so much for your response. Also, is it possible to bring
the routes of the filament to web.php where I can route them in the
web.php? At the moment, I wanted to define my own routes for the admin
panel and log in page inside the web.php.
…On Tue, Mar 21, 2023, 6:28 PM wychoong ***@***.***> wrote:
Check this if you haven’t
https://filamentphp.com/docs/2.x/admin/installation#deploying-to-production
—
Reply to this email directly, view it on GitHub
<#5987 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZJNDXI3T3CPQKESQPBBW7LW5HXNPANCNFSM6AAAAAAWCPEMBI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
What do you mean define your own route? You want to use url other than |
Beta Was this translation helpful? Give feedback.
-
OK, what I mean is that, from the filament admin dashboard, if I click on
logout, it should redirect me to my home page. At this point, if I log out
from my admin dashboard, it redirect me to the login page
…On Tue, Mar 21, 2023, 6:57 PM wychoong ***@***.***> wrote:
What do you mean define your own route? You want to use url other than
/admin?
—
Reply to this email directly, view it on GitHub
<#5987 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZJNDXIBRTC5TL7BBEMAD4LW5H2X5ANCNFSM6AAAAAAWCPEMBI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks so much, please I implemented the filamentuser contract but in the
production, I can't login. In my cpanel, I created database and user and
updated my . env file but when I tried logging, it didn't work. They access
denied. Inside my database, the user that I created in the
filament:make-user command is there.
…On Wed, Mar 22, 2023, 2:41 AM wychoong ***@***.***> wrote:
create your own LogoutResponse and bind it in service provider register
refer this
https://github.com/filamentphp/filament/blob/45d8ebce5ff780ba9c270dde890a0b3252d2d537/packages/admin/src/FilamentServiceProvider.php#L92
—
Reply to this email directly, view it on GitHub
<#5987 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZJNDXOX4ICYP5FIAEGPIU3W5JRFJANCNFSM6AAAAAAWCPEMBI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, I did.
Public function canAccessFilament() :bool
{
return str_ends_with($this - >email, ***@***.***) :
}
I also imported use Filament \Models \Contracts \FilamentUser;
I implemented as follows
class User extends Authenticatable implements Filamentuser
…On Wed, Mar 22, 2023, 4:15 PM wychoong ***@***.***> wrote:
But did you define the public function canAccessFilament?
—
Reply to this email directly, view it on GitHub
<#5987 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZJNDXLAGLRR4LACXPWHUS3W5MQQ7ANCNFSM6AAAAAAWCPEMBI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It has worked now. Thanks.
The only problem is the avatar and hasName attributes. Is it not inside the
user.php that I will implement them too? I did and they are not showing in
admin dashboard.
On Wed, Mar 22, 2023, 7:14 PM JIJIRI JOHNSON ***@***.***>
wrote:
… Yes, I did.
Public function canAccessFilament() :bool
{
return str_ends_with($this - >email, ***@***.***) :
}
I also imported use Filament \Models \Contracts \FilamentUser;
I implemented as follows
class User extends Authenticatable implements Filamentuser
On Wed, Mar 22, 2023, 4:15 PM wychoong ***@***.***> wrote:
> But did you define the public function canAccessFilament?
>
> —
> Reply to this email directly, view it on GitHub
> <#5987 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AZJNDXLAGLRR4LACXPWHUS3W5MQQ7ANCNFSM6AAAAAAWCPEMBI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
this vid can help. https://www.youtube.com/watch?v=ctPLX04-ui8&list=PL6u82dzQtlfv8fJF3gm42TDHJdtA2NDWT&index=22 |
Beta Was this translation helpful? Give feedback.
-
Hi please I am deployed my laravel filament app to my hosting plan but the admin dashboard is not working. The frontend works successfully.
What could be the problem?
Beta Was this translation helpful? Give feedback.
All reactions