call controller function from another controller laravel
snippet in php

laravel access controller method from another controller

user7599

// Include the other controller in this controller
use App\Http\Controllers\TasksController;

// Instantiate other controller class in this controller's method
$tasks_controller = new TasksController;
// Use other controller's method in this controller's method
$tasks_controller->postNotification($comment_content, $author);

call controller function from another controller laravel

user9952

// Include the other controller in this controller
use App\Http\Controllers\TasksController;

// Instantiate other controller class in this controller's method
$tasks_controller = new TasksController;
// Use other controller's method in this controller's method
$tasks_controller->postNotification($comment_content, $author);

laravel call controller method from another controller

user7140

return \App::call('bla\bla\ControllerName@functionName');