Answers for "controller function in laravel"

27

laravel create controller

php artisan make:controller MyController
Posted by: Guest on May-07-2020
8

call controller function from another controller laravel

// 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);
Posted by: Guest on August-02-2020
2

how to create controller in laravel

php artisan make:controller NameController // if you want to auto setup then use: NameContrller -r
Posted by: Guest on August-17-2021

Code answers related to "controller function in laravel"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language