Skip to content

justinas389/subscription

Repository files navigation

Laravel Project Setup with Docker (Sail)

Install Dependencies

composer install

Start Laravel Sail

./vendor/bin/sail up -d

Run Migrations

./vendor/bin/sail artisan migrate --seed

In storage/logs/laravel.log file should be API TOKEN KEY. Use it to authenticate when sending requests to API

Start queue worker

./vendor/bin/sail artisan queue:work

Access the Application

http://localhost

API

Authentication

Add to header Bearer Token

"Authorization": "Bearer {YOUR_AUTH_KEY}"

POST /api/subscriptions/1/transition

Body example

{
   "phase": "active" 
}

GET /api/subscriptions/1/amount?usedUntil=2025-09-17

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages