Skip to content

A opinionated template for Laravel Nova with a lot of features an integrations.

Notifications You must be signed in to change notification settings

henryavila/laravel-nova-multitenant-template

Repository files navigation

Laravel Nova Multi Tenant Template

This template provide a ready to start app with the following features and technologies


  • email tracking
  • multi tentant

How to use

Setup Laravel Nova

run the following code with your e-mail and nova licence key

composer config http-basic.nova.laravel.com YOUR-NOVA-ACCOUNT-EMAIL@YOUR-DOMAIN.COM YOUR-LICENSE-KEY

update the .env file, setting your larva nova license key:

NOVA_LICENSE_KEY=PUT_YOUR_NOVA_LICENSE_KEY_HERE

Create the following GitHub secrets

  • LARAVEL_NOVA_USERNAME
  • LARAVEL_NOVA4_TOKEN

And then run

composer update --prefer-dist
php artisan migrate

Create a user running

php artisan nova:user

For mor information about official Nova customization, consult the Larave Nova docs


Custom content

Spatie Permission

We use https://github.com/vyuldashev/nova-permission to manage Spatie Permission. Some customization was added to vyuldashev/nova-permission, allowing to add date limit to permission. After the end date, the permission will be automatically removed

Resource Access Permission

Laravel Nova uses Policy to define if the user can access a resource. This template grant access to all resources to a user if:

The rest, folows the default Laravel Nova Authorization logic

Test

composer test

About

A opinionated template for Laravel Nova with a lot of features an integrations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published