Download the PHP package ioffline/laravel-discrete-api-base without Composer
On this page you can find all versions of the php package ioffline/laravel-discrete-api-base. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ioffline/laravel-discrete-api-base
More information about ioffline/laravel-discrete-api-base
Files in ioffline/laravel-discrete-api-base
Package laravel-discrete-api-base
Short Description Laravel API for discrete Frontend. Supports Sanctum token authentication.
License MIT
Informations about the package laravel-discrete-api-base
Laravel Discrete API
Base package
Description
This package implements the following features:
- Registration
- Password recovery
- Authorization
- Two-factor authorization by email
- Email Confirmation
- Password Confirmation
- Profile management (name, avatar, locale)
- Locale management via header
Accept-Language
- Change email with confirmation (confirmation of new email will be required)
- Server-side notifications
- Organizations (can be renamed to teams, projects, groups with auto-route change)
The reason why I created this package is simple: Laravel + Breeze / Laravel + Jetstream are tied to a specific technology stack. I'm not happy with this, as it doesn't allow me to throw out certain structures without destroying the entire software suite. What is important for high loads - too much code is involved in the interpretation, which will not be used when using Laravel only as an API. I do not use fantasy in the code, I often take what is already created by Laravel authors as a basis.
Pre-Requirements
.env
-file. Add:
Installation
Publich the package config and model
If You plan make some modifications
Check and do some corrections to the config at config/discreteapibase.php
,
Then do migrate php artisan migrate
Check the routes exists by php artisan route:list
Modification
- Option 1:
- Copy Controllers and Actions from a Package to the app directory preserving structure
- Change namespace at each file
- Change in the config keys:
route_namespace
andactions_namespace
- Option 2:
- Create new classes (preserving structure as in
Option 1
) and extends to the Package classes. - Change in the config keys:
route_namespace
andactions_namespace
- Create new classes (preserving structure as in
Withis solution you will able to modify and grow functionality.
Attention ! This is not coplete solution. You will need to debug all steps to make this work.
License MIT
All versions of laravel-discrete-api-base with dependencies
laravel/framework Version ^11.9
laravel/sanctum Version ^4.0
ext-curl Version *
ioffline/utils Version *