How to remove Create button from resource

I deleted create, edit and view pages from my resource but i still seeing create button. I don't want to use policy to remove create button. Do you have any suggestion?
3 Replies
OzgurOzarpaci
OzgurOzarpaciOP2y ago
Sorry i looking this 2 days but now i figured out. I just added this function to my resource:
public static function canCreate(): bool
{
return false;
}
public static function canCreate(): bool
{
return false;
}
techenby
techenby2y ago
Did you also delete the Create action from the ListPage?
Dennis Koch
Dennis Koch2y ago
Yeah you could just remove the action.
Want results from more Discord servers?
Add your server