App\Console\Commands\Posts\PostOne::__construct PHP 메소드

__construct() 공개 메소드

Create a new command instance.
public __construct ( PostRepository $post )
$post App\Repositories\PostRepository
    public function __construct(PostRepository $post)
    {
        parent::__construct();
        $this->storage = storage_path('app/posts');
        $this->post = $post;
    }