Lavalite package that provides offer management facility for the cms. ## Installation Begin by installing this package through Composer. Edit your project's `composer.json` file to require `ebuy/offer`. "ebuy/offer": "dev-master" Next, update Composer from the Terminal: composer update Once this operation completes execute below cammnds in command line to finalize installation. Ebuy\Offer\Providers\OfferServiceProvider::class, And also add it to alias 'Offer' => Ebuy\Offer\Facades\Offer::class, ## Publishing files and migraiting database. **Migration and seeds** php artisan migrate php artisan db:seed --class=Ebuy\\Offer\\Seeders\\OfferTableSeeder **Publishing configuration** php artisan vendor:publish --provider="Ebuy\Offer\Providers\OfferServiceProvider" --tag="config" **Publishing language** php artisan vendor:publish --provider="Ebuy\Offer\Providers\OfferServiceProvider" --tag="lang" **Publishing views** php artisan vendor:publish --provider="Ebuy\Offer\Providers\OfferServiceProvider" --tag="view" ### Web Urls **Admin** http://path-to-route-folder/admin/offer/{modulename} **User** http://path-to-route-folder/user/offer/{modulename} **Public** http://path-to-route-folder/offers ### API endpoints **List** http://path-to-route-folder/api/user/offer/{modulename} METHOD: GET **Create** http://path-to-route-folder/api/user/offer/{modulename} METHOD: POST **Edit** http://path-to-route-folder/api/user/offer/{modulename}/{id} METHOD: PUT **Delete** http://path-to-route-folder/api/user/offer/{modulename}/{id} METHOD: DELETE **Public List** http://path-to-route-folder/api/offer/{modulename} METHOD: GET **Public Single** http://path-to-route-folder/api/offer/{modulename}/{slug} METHOD: GET