awcodes / trov
A Laravel / Filament starter kit for CMS functionality on websites.
Installs: 86
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ^8.0.2
- filament/filament: ^2.0
- filament/spatie-laravel-tags-plugin: ^2.0
- hisorange/browser-detect: ^4.5
- sebastiaankloos/filament-code-editor: ^1.0
- spatie/laravel-package-tools: ^1.9.2
- spatie/laravel-sluggable: ^3.3
- spatie/laravel-tags: ^4.3
This package is auto-updated.
Last update: 2022-10-25 16:31:20 UTC
README
‼️ Do not install this in an existing application unless you know what you are doing.
A Laravel / Filament starter kit for CMS functionality on websites.
Installation
Install packages via composer
composer require awcodes/trov awcodes/filament-addons awcodes/filament-curator awcodes/filament-tiptap-editor awcodes/filament-sentry awcodes/filament-versions
Install optional packages
composer require awcodes/filament-quick-create awcodes/filament-sticky-header
Setup Filament Breezy
Publish config file. This will publish Sentry's version of Breezy's config with stronger default password rules. You are free to modify this however you see fit.
php artisan vendor:publish --tag=filament-sentry-config
Setup Filament Shield
Install Shield
php artisan vendor:publish --tag=filament-shield-migrations php artisan vendor:publish --tag=filament-shield-seeder
Open the Database\Seeders\ShieldSettingSeeder.php
file and update the $settingKeys as needed.
php artisan migrate php artisan db:seed --class=ShieldSettingSeeder
Add the Spatie\Permission\Traits\HasRoles trait to your User model(s):
use Spatie\Permission\Traits\HasRoles; use Filament\Models\Contracts\FilamentUser; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable implements FilamentUser { use HasRoles; public function canAccessFilament(): bool { // this can be anything as long as it returns true / false return str_ends_with($this->email, '@domain.com') && $this->getRoleNames()->isNotEmpty(); } }
Setup Filament Curator and Trov Core
php artisan curator:install php artisan trov:install
Install Modules (optional)
php artisan trov:install --module=airport php artisan trov:install --module=discoveries php artisan trov:install --module=faqs php artisan trov:install --module=linkables php artisan trov:install --module=whitepages
License
Trov is open-sourced software licensed under the MIT license.