dpsoft/mehr-rest-api

Mehr REST api package

v1.2.0 2021-11-14 13:59 UTC

This package is auto-updated.

Last update: 2024-04-04 11:07:16 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us

package-mehr-rest-api-laravel.jpg?t=1

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require dpsoft/mehr-rest-api

You can publish the package's assets with:

php artisan vendor:publish --tag=public

Since you will typically need to overwrite the assets every time the package is updated, you may use the --force flag:

php artisan vendor:publish --tag=public --force

For using laravel sanctum as authentication protocol, you have to do the following:

1. php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
2. php artisan migrate

To begin issuing tokens for users, your User model should use the Laravel\Sanctum\HasApiTokens trait:

use Laravel\Sanctum\HasApiTokens;

class User extends Authenticatable
{
  use HasApiTokens;
}