Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel access controller method from another controller

// Include the other controller in this controller
use AppHttpControllersTasksController;

// 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);
Source by codeblock.co.za #
 
PREVIOUS NEXT
Tagged: #laravel #access #controller #method #controller
ADD COMMENT
Topic
Name
6+5 =