Skip to content

Instantly share code, notes, and snippets.

View jasonmccreary's full-sized avatar

Jason McCreary jasonmccreary

View GitHub Profile
@jasonmccreary
jasonmccreary / regex.md
Created October 26, 2018 14:56
Regex to convert old closure based view routes to Route::view()

The following regex will convert old, closure-based view routes from:

Route::get('faq', function () {
    return view('faq');
});

to the new, cacheable Route::view() introduced in Laravel 5.5.

@jasonmccreary
jasonmccreary / getting-git-resources.md
Last active June 7, 2017 18:16
Getting Git Resources

Resources from the Getting Git workshop

These resources are either referenced during my Getting Git workshop or serve as materials for additional learning.

  • Pro Git - Recommend reading the first three chapters.
  • Git Flow and GitHub Flow - two of the popular branching models. I recommend GitHub Flow or more generally the master/feature branching model.
  • How to write a good commit message
  • My Blog - many of the recent articles go into more detail on Git commands and everyday scenarios we covered in the workshop.

In addition, the Getting Git workshop is based on the Getting Git video course. This can not only serve as a refresher, but also cover more commands and scenarios than the workshop.