Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how use same method in another class in laravel

public $doctorController;

public function __construct(){
        $this->doctorController = new DoctorController();
}

public function index (Request $request){
       return $this->doctorController->index($request); 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #method #class #laravel
ADD COMMENT
Topic
Name
8+5 =