xqsit94 / laravel-webservice-example-boilerplate
Laravel webservice example/boilerplate using laravel 7.x, Sanctum and Facades pattern. Clone and add your own functionalities
Package info
github.com/xqsit94/laravel-webservice-example-boilerplate
Type:project
pkg:composer/xqsit94/laravel-webservice-example-boilerplate
dev-master
2020-05-12 13:35 UTC
Requires
- php: ^7.2.5
- fideloper/proxy: ^4.2
- fruitcake/laravel-cors: ^1.0
- guzzlehttp/guzzle: ^6.3
- laravel/framework: ^7.0
- laravel/sanctum: ^2.3
- laravel/tinker: ^2.0
Requires (Dev)
- facade/ignition: ^2.0
- fzaninotto/faker: ^1.9.1
- mockery/mockery: ^1.3.1
- nunomaduro/collision: ^4.1
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2026-03-01 00:31:33 UTC
README
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. **