php - How to override a vendor class in Laravel 5? -


i can't seem specific class overridden.

in routeserviceproviders boot() function have line:

$this->app->bind('dingo\api\routing\route', 'app\extensions\vendor\dingo\api\routing\route'); 

i'm trying override dingo route class can see, own custom class located @ app\extensions\vendor\dingo\api\routing

my custom route class looks this:

<?php namespace app\extensions\vendor\dingo\api\routing;  use dingo\api\routing\route routebase;  class route extends routebase {     /**      * merge controller properties onto route properties.      *      * @return void      */     protected function mergecontrollerproperties()     {         echo 'huge success';         exit;     } } 

what doing wrong? calls mergecontrollerproperties() on dingo route class instead of custom class??

i can mention worked fine until ran composer update while ago.


Comments

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -