Unresolvable dependency resolving [Parameter #0 [ <required> $id ]] in class code example
Example: Unresolvable dependency resolving [Parameter #0 [ $id ]] in class App\Http\Controllers\CategoryController
php artisan optimize:clear
php artisan optimize:clear