Skip to content

buzkall/finisterre

Repository files navigation

Finisterre

My helper package

Installation

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

Optionally, you can publish the views using

php artisan vendor:publish --tag="finisterre-views"

Usage

Add the plugin to your panel provider

use Buzkall\Finisterre\Finisterre;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            Finisterre::make(),
        ])
    ])
}

Testing

composer test