Replies: 1 comment
-
It's been over a year, so I'm guessing @karaOdin that you either found a solution or gave up, but I've just hit this problem and thought I'd share the details/solution to my version of the problem for anyone who needs to know. I'm seeing the error "Attribute [webhooks] does not exist" because my package which uses My solution was to modify my package's RouteServiceProvider so that it loaded its routes using <?php
namespace Modules\MyModule\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
protected string $name = 'MyModule';
public function boot(): void
{
$this->app->booted([$this, 'onBoot']);
}
public function onBoot(): void
{
Route::middleware('api')->prefix('api')->name('api.')->group(module_path($this->name, '/routes/api.php'));
Route::middleware('web')->group(module_path($this->name, '/routes/web.php'));
}
?> |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I got this error when i upgrade my project from laravel 10 to 11 using larashift
Beta Was this translation helpful? Give feedback.
All reactions