laravel 8 call controller method from view code example
Example 1: laravel call controller method from view
Just try this in your view :
{{ ControllerName::Functionname($params); }}
OR
<?php echo ControllerName::Functionname($params);?>
Example 2: use resource in laravel 8
php artisan make:controller PhotoController --resource --model=Photo