Created
November 17, 2015 07:05
-
-
Save cod3beat/0560a61ce544ef808849 to your computer and use it in GitHub Desktop.
Excecuting Create Unpublished Command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ChallengeController | |
{ | |
public function store() | |
{ | |
try { | |
// Mengeksekusi Command | |
$this->execute(CreateUnpublishedChallenge::class); | |
} catch (Exception $e) { | |
// ... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment