Skip to content
Discussion options

You must be logged in to vote

Here's how to achieve a 403 page override in Nova 4:

  1. Create a custom JavaScript file (i.e. custom.js, but the file name doesn't matter) and setup mix to compile it. See the sample Mix configuration below
mix.js('resources/js/app.js', 'public/js')
  .js('resources/js/nova/custom.js', 'public/js/nova') // Add this line.
  .vue({ version: 3 })
  .webpackConfig({
    externals: {
      vue: 'Vue',
    },
  })
  .postCss('resources/css/app.css', 'public/css', [
    //
  ]);
  1. Register the script in the app/Providers/NovaServiceProvider.php boot method
public function boot()
{
    parent::boot();

    // It is important to use the remoteScript method here in order to make the script load
    /…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@piljac1
Comment options

@piljac1
Comment options

Comment options

You must be logged in to vote
1 reply
@PureLuck3
Comment options

Answer selected by PureLuck3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants