LoginSignup
2
0

More than 1 year has passed since last update.

【Laravel】Undefined class 'Log'【PhpStorm】

Last updated at Posted at 2022-12-16

image.png
Warningが出る場合、Laravel IDE Helperをインストールしよう

composer require --dev barryvdh/laravel-ide-helper
config/app.php
    'providers' => [
        /*
         * Package Service Providers...
         */
        Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
app/Providers/AppServiceProvider.php
    public function register()
    {
        if ($this->app->isLocal()) {
            $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
        }
    }
php artisan ide-helper:generate

_ide_helper.php をダウンロードだけでも大丈夫です
https://gist.github.com/barryvdh/5227822

Undefined class 'App'

Undefined class 'Arr'

Undefined class 'Artisan'

Undefined class 'Auth'

Undefined class 'Blade'

Undefined class 'Broadcast'

Undefined class 'Bus'

Undefined class 'Cache'

Undefined class 'Config'

Undefined class 'Cookie'

Undefined class 'Crypt'

Undefined class 'Date'

Undefined class 'DB'

Undefined class 'Eloquent'

Undefined class 'Event'

Undefined class 'File'

Undefined class 'Gate'

Undefined class 'Hash'

Undefined class 'Http'

Undefined class 'Js'

Undefined class 'Lang'

Undefined class 'Log'

Undefined class 'Mail'

Undefined class 'Notification'

Undefined class 'Password'

Undefined class 'Queue'

Undefined class 'RateLimiter'

Undefined class 'Redirect'

Undefined class 'Request'

Undefined class 'Response'

Undefined class 'Route'

Undefined class 'Schema'

Undefined class 'Session'

Undefined class 'Storage'

Undefined class 'Str'

Undefined class 'URL'

Undefined class 'Validator'

Undefined class 'View'

Undefined class 'Vite'

参考

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0