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
<?php | |
// for Laravel 4.1.* | |
Route::controller('bank-accounts', 'Dashboard_BankAccountsController', array('getCreate'=>'dashboard.bank-accounts.create', | |
'postCreate'=>'dashboard.bank-accounts.create.post')); | |
Route::get('bank-accounts', array('as' => 'dashboard.bank-accounts', 'uses' => 'Dashboard_BankAccountsController@getIndex')); | |
// for Laravel 4.0.* it was possible to do like this | |
Route::get('bank-accounts', array('as' => 'dashboard.bank-accounts', 'uses' => 'Dashboard_BankAccountsController@getIndex')); | |
Route::controller('bank-accounts', 'Dashboard_BankAccountsController', array('getCreate'=>'dashboard.bank-accounts.create', |
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
<?php | |
use Monolog\Logger; | |
use Monolog\Handler\StreamHandler; | |
$monolog = new Logger('log'); | |
$monolog->pushHandler(new StreamHandler(storage_path('logs/log-'.date('Y-m-d').'.txt')), Logger::WARNING); | |
$monolog->debug("hello ".rand(100,200), array(rand(30,20), array(rand(1,1000), rand(1000,2000)))); |
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
<?php | |
return array( | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Debug Mode | |
|-------------------------------------------------------------------------- | |
| | |
| When your application is in debug mode, detailed error messages with | |
| stack traces will be shown on every error that occurs within your |
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
<?php | |
// located in the /app/filters.php | |
/* some original code */ | |
Route::filter('statistics.auth.basic', function() { | |
$user = Request::getUser(); | |
$password = Request::getPassword(); | |
if (!App::environment('development') && |
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
{ | |
"basePath": "http://local.questouri.com/api", | |
"swaggerVersion": "1.2", | |
"apiVersion": "0.1", | |
"resourcePath": "/quests", | |
"apis": [ | |
{ | |
"path": "/quests", | |
"description": "Display a listing of the resource. GET /user-quests", | |
"operations": [ |
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
var require = patchRequire(require); | |
// now you're ready to go | |
var utils = require('utils'); | |
// jquery | |
var $ = require('jquery'); | |
exports.solveCaptcha = function(captchaData, options) { |
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
<template> | |
<button type="button" | |
class="btn btn-lg btn-success" | |
style="margin: 10px;" | |
v-class="disabled: isMaxResponses" | |
v-on="click: addResponse"> | |
<span class="glyphicon glyphicon-plus"></span> Add Response | |
</button> | |
<response v-repeat="responses" remove-response="{{removeResponse}}"></response> |
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
<template> | |
<button type="button" | |
class="btn btn-lg btn-success" | |
style="margin: 10px;" | |
v-class="disabled: isMaxResponses" | |
v-on="click: addResponse"> | |
<span class="glyphicon glyphicon-plus"></span> Add Response | |
</button> | |
<response v-repeat="responses" remove-response="{{removeResponse}}"></response> |
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
<template> | |
<button type="button" | |
class="btn btn-lg btn-success" | |
style="margin: 10px;" | |
v-class="disabled: isMaxResponses" | |
v-on="click: addResponse"> | |
<span class="glyphicon glyphicon-plus"></span> Add Response | |
</button> | |
<response v-repeat="responses" remove-response="{{removeResponse}}"></response> |
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
<template> | |
<div class="modal fade" id="addVerbModal"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span | |
aria-hidden="true">×</span></button> | |
<h4 class="modal-title">Modal title</h4> | |
</div> | |
<div class="modal-body"> |
OlderNewer