laravel-webservice-example-boilerplate maintained by xqsit94
Description
Laravel webservice example/boilerplate using laravel 7.x, Sanctum and Facades pattern. Clone and add your own functionalities
Last update
2023/02/01 20:54
(dev-dependabot/composer/symfony/http-kernel-5.4.20)
License
Downloads
0
Tags
Laravel Webservice Example/Boilerplate
- Laravel 7.x
- Sanctum
- Magical Facades Pattern
Usage
This is not a package - it's a full Laravel project that you should use as a starter boilerplate, and then add your own custom functionalities.
- Clone the repository with
git clone - Copy
.env.examplefile to.envand edit database credentials there - Run
composer install - Run
php artisan key:generate - Run
php artisan migrate - That's it: Test API's with Postman
Useful snippets to check
HasApiResponseTraitrender methodin Handler.phpFacades keywordin controllers (Used as proxies for calling non-static method static)Facadesfolder
** Note: Every api should hold Accept: Application/json in header. **