This file contains 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
RewriteEngine On | |
#This will have the file processed by robots.php instead of a regular static file. | |
RewriteRule ^robots.txt$ /robots.php [L] |
This file contains 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
<?php | |
namespace Mauro\Ardent; | |
class Ardent extends \LaravelBook\Ardent\Ardent { | |
public function validate( array $rules = array(), array $customMessages = array() ) { | |
if (empty($rules)) { |
This file contains 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
<?php | |
use Namshi\JOSE\JWS; | |
class AuthController extends Controller { | |
function layer_identity_token() { | |
if (Auth::user()->id !== Input::get('user_id')) { | |
App::abort(500); |