From 39aa8530424310663c888f9e02224158961532e3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 30 Oct 2018 18:41:29 +0100 Subject: PHP is crap --- api/Posts/Console/AddPostCommand.php | 59 ------------------------------------ 1 file changed, 59 deletions(-) delete mode 100644 api/Posts/Console/AddPostCommand.php (limited to 'api/Posts/Console') diff --git a/api/Posts/Console/AddPostCommand.php b/api/Posts/Console/AddPostCommand.php deleted file mode 100644 index 977afb6..0000000 --- a/api/Posts/Console/AddPostCommand.php +++ /dev/null @@ -1,59 +0,0 @@ -postRepository = $postRepository; - } - - /** - * Execute the console command. - * - * @return mixed - */ - public function handle() - { - $post = $this->postRepository->create([ - 'name' => $this->argument('name'), - 'email' => $this->argument('email'), - 'password' => $this->argument('password') - ]); - - $this->info(sprintf('A post was created with ID %s', $post->id)); - } -} \ No newline at end of file -- cgit v1.2.3