esatic / suitecrm
Suitecrm integration package
1.1.8
2023-02-20 19:39 UTC
Requires
- php: ^7.4|^8.0
- ext-curl: *
- ext-json: *
- esatic/user-portal: ^1.0
- laravel/framework: ^7.4|^8.0
README
Add security
In your service provider push the middleware crm to your middleware authentication for security integrations
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Routing\Router; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { // } /** * Bootstrap any application services. * * @return void */ public function boot() { /** @var Router $router */ $router = $this->app['router']; $router->pushMiddlewareToGroup('crm', 'auth:api'); } }