/**
  * Create New Post
  *
  * @param array $postData
  * @return Post|null
  */
 public function create(array $postData)
 {
     return $this->post->create($postData);
 }
예제 #2
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     Post::create(['category_id' => $this->category_id, 'name' => $this->name, 'slug' => $this->slug, 'content' => $this->content]);
 }