App\Console\Commands\Posts\PostAll::handle PHP Method

handle() public method

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