Last active
May 28, 2017 01:26
-
-
Save jaggy/4c7f9b0027cdf9db3b6fa0503bffed03 to your computer and use it in GitHub Desktop.
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 | |
use App\Repository; | |
class StarRepositoryController extends Controller | |
{ | |
public function store(Repository $repository) | |
{ | |
// star the repo. | |
} | |
public function destroy(Repository $repository) | |
{ | |
// remove the star | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment