LaravelPackages.net
Acme Inc.
Toggle sidebar
xqsit94/laravel-webservice-example-boilerplate

Laravel webservice example/boilerplate using laravel 7.x, Sanctum and Facades pattern. Clone and add your own functionalities

0
0
About xqsit94/laravel-webservice-example-boilerplate

xqsit94/laravel-webservice-example-boilerplate is a Laravel package for laravel webservice example/boilerplate using laravel 7.x, sanctum and facades pattern. clone and add your own functionalities. It currently has 0 GitHub stars and 0 downloads on Packagist. Install it with composer require xqsit94/laravel-webservice-example-boilerplate. Discover more Laravel packages by xqsit94 or browse all Laravel packages to compare alternatives.

Last updated

Laravel Webservice Example/Boilerplate

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.example file to .env and 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

  • HasApiResponse Trait
  • render method in Handler.php
  • Facades keyword in controllers (Used as proxies for calling non-static method static)
  • Facades folder

** Note: Every api should hold Accept: Application/json in header. **

Comments