Skip to content

Instantly share code, notes, and snippets.

@iowillhoit
Last active December 20, 2015 20:09
Show Gist options
  • Save iowillhoit/6188601 to your computer and use it in GitHub Desktop.
Save iowillhoit/6188601 to your computer and use it in GitHub Desktop.
*Sublime Text Snippet* Laravel 4 Snippet: Service Provider
<snippet>
<content><![CDATA[
<?php namespace ${1:Your\Namespace};
use App;
use Illuminate\Support\ServiceProvider;
class ${2:providerName}Provider extends ServiceProvider{
${3:
public function register()
{
${4:// Bindings: App::bind() or App::singleton()}
\}
}${5:
public function boot()
{
${6:// Everything else: event listeners, error handlers, extensions}
\}
}}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>l4sp</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment