jeudi 24 mars 2016

Laravel service provider no ran

I have basically called: php artisan make:provider RiakServiceProvider but the new provider does not seem to be called. I have added a var_dump in both boot and register methods.

<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class RiakServiceProvider extends ServiceProvider
{
    public function boot() {
        var_dump('Should be call second');die;
    }

    public function register() {
        var_dump('Should be call first');die;
    }
}

But this does not seem to be called. Neither through the web server, neither in PHPUnit.?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire