My helper package
You can install the package via composer:
composer require buzkall/finisterre
You can publish the config file with:
php artisan vendor:publish --tag="finisterre-config"
This is the contents of the published config file:
return [
'active' => env('FINISTERRE_ACTIVE', false),
'table_name' => 'finisterre_tasks',
'comments.table_name' => 'finisterre_task_comments',
];
By default, the package will not be active, this can be changed adding the following to your .env file
FINISTERRE_ACTIVE=true
You can change the name of the table in the config file You can publish and run the migrations with:
php artisan vendor:publish --tag="finisterre-migrations"
php artisan migrate
If you don't already have the spatie tags package, publish the migrations
php artisan vendor:publish --provider="Spatie\Tags\TagsServiceProvider" --tag="tags-migrations"
php artisan migrate
Optionally, you can publish the views using
php artisan vendor:publish --tag="finisterre-views"
Add the plugin to your panel provider
use Buzkall\Finisterre\Finisterre;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
Finisterre::make(),
])
])
}
composer test