# Installation The instructions below will help you to properly install the generated package to the lavalite project. ## Location Extract the package contents to the folder `/packages/beejees/jobs/` ## Composer Add the below entries in the `composer.json` file's autoload section and run the command `composer dump-autoload` in terminal. ```json ... "autoload": { ... "classmap": [ ... "packages/beejees/jobs/database/seeds", ... ], "psr-4": { ... "Beejees\\Jobs\\": "packages/beejees/jobs/src", ... } }, ... ``` ## Config Add the entries in service provider in `config/app.php` ```php ... 'providers' => [ ... Beejees\Jobs\Providers\JobsServiceProvider::class, ... ], ... 'alias' => [ ... 'Jobs' => Beejees\Jobs\Facades\Jobs::class, ... ] ... ``` ## Migrate After service provider is set run the commapnd to migrate and seed the database. php artisan migrate php artisan db:seed --class=Beejees\\JobsTableSeeder ## Publishing **Publishing configuration** php artisan vendor:publish --provider="Beejees\Jobs\Providers\JobsServiceProvider" --tag="config" **Publishing language** php artisan vendor:publish --provider="Beejees\Jobs\Providers\JobsServiceProvider" --tag="lang" **Publishing views** php artisan vendor:publish --provider="Beejees\Jobs\Providers\JobsServiceProvider" --tag="view" ## URLs and APIs ### Web Urls **Admin** http://path-to-route-folder/admin/jobs/{modulename} **User** http://path-to-route-folder/user/jobs/{modulename} **Public** http://path-to-route-folder/jobs ### API endpoints **List** http://path-to-route-folder/api/user/jobs/{modulename} METHOD: GET **Create** http://path-to-route-folder/api/user/jobs/{modulename} METHOD: POST **Edit** http://path-to-route-folder/api/user/jobs/{modulename}/{id} METHOD: PUT **Delete** http://path-to-route-folder/api/user/jobs/{modulename}/{id} METHOD: DELETE **Public List** http://path-to-route-folder/api/jobs/{modulename} METHOD: GET **Public Single** http://path-to-route-folder/api/jobs/{modulename}/{slug} METHOD: GET