Skip to content

Commit 0b554b4

Browse files
authored
Change boot method visibility to public
Changed the visibility of the boot method from protected to public. Fixing the "Call to protected method App\Providers\AppServiceProvider::boot() from scope Illuminate\Container\BoundMethod" when useing the wrong visibility in v12
1 parent c9008a0 commit 0b554b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ use Illuminate\Support\Facades\RateLimiter;
851851
/**
852852
* Bootstrap any application services.
853853
*/
854-
protected function boot(): void
854+
public function boot(): void
855855
{
856856
RateLimiter::for('api', function (Request $request) {
857857
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
@@ -869,7 +869,7 @@ use Illuminate\Support\Facades\RateLimiter;
869869
/**
870870
* Bootstrap any application services.
871871
*/
872-
protected function boot(): void
872+
public function boot(): void
873873
{
874874
RateLimiter::for('global', function (Request $request) {
875875
return Limit::perMinute(1000);

0 commit comments

Comments
 (0)