protected function registerBindings()
    {
        $binding = config('binding')?: [];

        foreach($binding as $contract => $implementation) {
            $this->bind($contract, $implementation);
        }
    }
protected function registerBindings()
    {
        $binding = config('binding')?: [];

        foreach($binding as $contract => $implementation) {
            $this->bind($contract, $implementation);
        }
    }
protected function registerBindings ( ) { $ binding = config ( 'binding' ) ? : [ ] ; foreach ( $ binding as $ contract => $ implementation ) { $ this -> bind ( $ contract , $ implementation ) ; } }
To register all bindings
To register all bindings