betalabs / engine-laravel-helper
Engine Laravel Helper provides essential functionalities to work with Engine apps on Laravel.
Installs: 7 341
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- betalabs/engine-phpsdk: ^2.0.5
- betalabs/engine-structure-helper: ^2.3
- doctrine/dbal: ^2.11|^3.0
- laravel/legacy-factories: ^1.0
- laravel/passport: ^11.0
- myclabs/php-enum: ^1.5
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^8.0 | ^9.0
- phpunit/phpunit: ^8.4 | ^9.0
- dev-master
- v4.0
- v3.1
- 3.0.1
- v3.0
- v2.0.0
- v1.1
- v1.0
- v0.9.0
- v0.8.0
- v0.7.10
- v0.7.9.1
- 0.7.9.1-dev
- v0.7.9
- v0.7.8
- v0.7.7
- v0.7.6
- v0.7.5
- v0.7.4
- v0.7.3
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.9
- v0.6.8
- v0.6.7
- v0.6.6
- v0.6.5
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.9
- v0.5.8
- v0.5.7
- v0.5.6
- v0.5.5
- v0.5.4
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.9
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.1
- v0.3
- v0.2
- v0.1
- dev-php8.1
- dev-PHP8.0
- dev-addFeatures
- dev-Php71
This package is auto-updated.
Last update: 2024-10-23 22:51:40 UTC
README
This package provides essential functionalities to work with Engine apps on Laravel.
Features
- Passport configured by default
- Tenant management
- Application genesis process
- App deploy command for deploy application
Requirements
- PHP 7.1.3+
- Laravel 5.6
- Passport 6.0+
Installation
- Install the package via composer
$ composer require betalabs/engine-laravel-helper
- Import package files to your Laravel project
$ php artisan vendor:publish --provider="Betalabs\LaravelHelper\LaravelHelperServiceProvider"
- Register package routes to your RouteServiceProvider:
/** * Define the routes for the application. * * @return void */ public function map() { $this->mapApiRoutes(); $this->mapWebRoutes(); \Betalabs\LaravelHelper\LaravelHelper::routes(); }
- Register Passport routes to your AuthServiceProvider:
/** * Register any authentication / authorization services. * * @return void */ public function boot() { $this->registerPolicies(); \Laravel\Passport\Passport::routes(); }
- In your
config/auth.php
configuration file, you should set the driver option of the api authentication guard to passport and the users provider model to our Tenant model. This will instruct your application to use Passport's TokenGuard when authenticating incoming API requests:
'guards' => [ 'api' => [ 'driver' => 'passport', 'provider' => 'users', ], ], 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => \Betalabs\LaravelHelper\Models\Tenant::class, ], ],
- And finally
$ php artisan app:deploy