Skip to content

Instantly share code, notes, and snippets.

@sharik709
Created June 22, 2018 08:22
Show Gist options
  • Save sharik709/5d3931a058ca18a24a2f634cc1c67228 to your computer and use it in GitHub Desktop.
Save sharik709/5d3931a058ca18a24a2f634cc1c67228 to your computer and use it in GitHub Desktop.
should be create under ~/.vim/snippets
snippet met
public function ${1}()
{
${2}
}
snippet pmet
protected function ${1}()
{
${2}
}
snippet smet
public static function ${1}()
{
${2}
}
snippet rg
Route::get('${1}', '${2}');
snippet rp
Route::post('${1}', '${2}');
snippet rgc
Route::get('${1}', function(){
${2}
});
snippet $
$this->${1}
snippet test
/** @test */
public function check_if_${1}() {
${2}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment