Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anetdev's avatar

Rename Vendor Tables (Laravel Nova)

Hello, we are attempting to prefix all of the nova/laravel created tables with nova_. The issue is we were unable to figure out how to apply a model overwrite.

As an example, we created this class

class NovaActionEvent extends ActionEvent
{
    protected $table = 'nova_action_events';

    public function getTable(): string
    {
        return 'nova_action_events';
    }
}

And then within service provider boot we bound that class to the ActionEvent from the vendor folder. This didn't seem to do anything. Any help is appreciated.

0 likes
1 reply

Please or to participate in this conversation.