Created
May 22, 2015 17:18
-
-
Save jdavidbakr/9f9e78db0294e7854cbb to your computer and use it in GitHub Desktop.
Snippet: Laravel Service Provider
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
<snippet> | |
<content><![CDATA[ | |
<?php | |
namespace ${1:App\Providers}; | |
use Illuminate\Support\ServiceProvider; | |
class ${2:Service}ServiceProvider extends ServiceProvider { | |
public function register() { | |
\$this->app->bind( | |
'${3:service-name}', 'App\Services\\${2:Service}' | |
); | |
} | |
} | |
?> | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>svc</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>php</scope> --> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment