awcodes/trov

This package is abandoned and no longer maintained. The author suggests using the trovcms/installer package instead.

A Laravel / Filament starter kit for CMS functionality on websites.

Maintainers

Details

github.com/awcodes/trov

Source

Issues

Installs: 88

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 1

Open Issues: 0

Type:project

v0.3.7 2022-07-22 14:02 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.