esatic/suitecrm

Suitecrm integration package

Installs: 15

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/esatic/suitecrm

1.1.8 2023-02-20 19:39 UTC

This package is not auto-updated.

Last update: 2025-10-22 08:22:17 UTC


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');
    }
}