Download the PHP package mindtwo/laravel-platform-manager without Composer
On this page you can find all versions of the php package mindtwo/laravel-platform-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mindtwo/laravel-platform-manager
More information about mindtwo/laravel-platform-manager
Files in mindtwo/laravel-platform-manager
Download mindtwo/laravel-platform-manager
More information about mindtwo/laravel-platform-manager
Files in mindtwo/laravel-platform-manager
Vendor mindtwo
Package laravel-platform-manager
Short Description A pacakage to resolve platforms.
License MIT
Homepage https://github.com/mindtwo/laravel-platform-manager
Package laravel-platform-manager
Short Description A pacakage to resolve platforms.
License MIT
Homepage https://github.com/mindtwo/laravel-platform-manager
Please rate this library. Is it a good library?
Informations about the package laravel-platform-manager
Laravel Platform Manager
[![Latest Version on Packagist][ico-version]][link-packagist] ![Software License][ico-license] [![Total Downloads][ico-downloads]][link-downloads]
Installation
You can install the package via composer:
How to use?
Publish config
To publish the modules config file simply run
This publishes the platform-resolver.php
config file to your projects config folder.
Inside the config you can specify your Platform model which will be used by the package.
Publish migrations
To publish the modules migrations file simply run
bash php artisan migrate
### With Laravel Sanctum
To use the platforms with Laravel's Sanctum package you should add the middleware
`mindtwo\LaravelPlatformManager\Middleware\StatefulPlatformDomais` to your project's
`Kernel.php`. To be concrete to the middlewareGroup `api` or your equivalent.
This middleware adds the plaform's hostnames to Sanctums Stateful Domains.
### Retrieve a platform
To receive the current platform you are working in simply inject `mindtwo\LaravelPlatformManager\Services\PlatformResolver`
to your service, controller, middleware, etc. Via the method `getCurrentPlatform()` you can receive your platform model.
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [mindtwo GmbH][link-author]
- [All Other Contributors][link-contributors]
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/mindtwo/laravel-platform-manager.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/mindtwo/laravel-platform-manager.svg?style=flat-square
[link-packagist]: https://packagist.org/packages/mindtwo/laravel-platform-manager
[link-downloads]: https://packagist.org/packages/mindtwo/laravel-platform-manager
[link-author]: https://github.com/mindtwo
[link-contributors]: ../../contributors
All versions of laravel-platform-manager with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0|^8.1|^8.2
mindtwo/native-enum Version ^1.7
mindtwo/laravel-auto-create-uuid Version ^2.6
laravel/framework Version ^9.0|^10.0|^11.0
mindtwo/native-enum Version ^1.7
mindtwo/laravel-auto-create-uuid Version ^2.6
laravel/framework Version ^9.0|^10.0|^11.0
The package mindtwo/laravel-platform-manager contains the following files
Loading the files please wait ....