App\Console\Commands\Posts\PostAll::handle PHP 메소드

handle() 공개 메소드

Execute the console command.
public handle ( ) : mixed
리턴 mixed
    public function handle()
    {
        $files = Storage::files('posts');
        foreach ($files as $file) {
            $this->call('post:one', ['name' => substr($file, 6)]);
        }
    }