Created
May 22, 2015 17:17
-
-
Save jdavidbakr/b61b1045c0e285b01287 to your computer and use it in GitHub Desktop.
Snippet: Laravel Controller
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\Http\Controllers}; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
class ${2:My}Controller extends Controller { | |
public function __construct() { | |
//\$this->middleware('guest', ['except' => 'getLogout']); | |
} | |
public function missingMethod(\$parameters = array()) { | |
return abort(404); | |
} | |
} | |
?> | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>control</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.python</scope> --> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment