heiw/nhs

Generic models that are used throughout HEIW/NHS sites.

dev-master 2021-06-22 11:07 UTC

This package is auto-updated.

Last update: 2024-04-22 20:02:36 UTC


README

This form package is used by heiw::uxcrudible, but can be used independently too.

Add package service providers

Add the package service providers to config/app.php:

/*
 * Package Service Providers...
 */
\Heiw\Nhs\NhsServiceProvider::class,

Install NHS data

To install default NHS data (Health Boards, Sites, etc) run the following command:

php artisan db:seed --class=Heiw\Nhs\Seeds\DatabaseSeeder

or to automatically run the seeds change `database\Seeds\DatabaseSeeds.php` to include the following lines:

    public function run()
    {

        $this->call([
            // Add following line:
            \Heiw\Nhs\Seeds\DatabaseSeeder::class,
            
            //// Your other seeders
        ]);
    }