esatic/suitecrm

Suitecrm integration package

1.1.8 2023-02-20 19:39 UTC

This package is not auto-updated.

Last update: 2024-05-08 01:08:08 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');
    }
}