xguard/tasklist

A plugin to create and manage tasks for contracts in the XGuard ERP

v1.1.2 2023-09-07 19:37 UTC

This package is auto-updated.

Last update: 2025-04-07 22:46:54 UTC


README

Plugin to manage supervisors on XGuard ERP


Installation with composer

Use the following commands to install

composer require xguard/tasklist
php artisan migrate
php artisan vendor:publish --provider="Xguard\Tasklist\TaskListServiceProvider" --force

Use the following command to create an admin. It will prompt you for an existing email from users table.

php artisan tasklist:create-admin

You can now go to the /tasklist path to use the package. You must first login to access this url.


Development

Follow these steps to make modifications to the package

1: Firstly, clone the tasklist repo inside your package folder at root level. Create a "package" folder if you don't have one.

2: Then, add line of code in the psr-4 of your root composer.json

"psr-4": {
    //...
    "Xguard\\Tasklist\\": "package/tasklist/src/"
},

3: Add the tasklist plugin service provider to the config/app.php

return [
    //...
    "providers" => [
        //...
        Xguard\Tasklist\TaskListServiceProvider::class,
    ]
];

4: run this command

composer dump-autoload 

5: Navigate to the tasklist package folder in your command line and perform the following commands:

composer install
npm install
npm run dev

6: Return to the root folder in the command line and publish the package with the following command:

php artisan vendor:publish --provider="Xguard\Tasklist\TaskListServiceProvider" --force

7: To run package migrations

php artisan migrate --path=package/tasklist/src/database/migrations

8: To run seeder for testing

php artisan db:seed --class="Xguard\Tasklist\database\seeds\EmployeeSeeder"

9:

php artisan tasklist:create-admin