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 | |
class Deposit extends OperationBaseModel { | |
protected $guarded = array(); | |
public static $rules = array( | |
'deposit_amount' => 'required', | |
'approval_status' => 'required' | |
); | |
} |
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 | |
$menu = Orchestra\App::menu(); | |
$menu->add('foo', '>:home') | |
->link('path/foo') | |
->title('Foobar'); | |
/* | |
Position |
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 | |
class ExampleTest extends TestCase { | |
/** | |
* A basic functional test example. | |
* | |
* @return void | |
*/ | |
public function testBasicExample() |
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 | |
class DatabaseSeeder extends Seeder { | |
/** | |
* Run the database seeds. | |
* | |
* @return void | |
*/ | |
public function run() |
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
# A sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
guard :less, :all_on_start => true, :all_on_start => false, :output => "public/css" do | |
watch(%r[^app/assets/less/(.+\.less)$]) | |
end | |
guard 'coffeescript', :input => 'app/assets/coffee' | |
# Refresh the browser on save |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="crynobone" | |
# Set to this to use case-sensitive completion |
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 | |
$vendorDir = app('path.base').'/vendor'; | |
return array_map('realpath', array( | |
/* | |
|-------------------------------------------------------------------------- | |
| Additional Compiled Classes | |
|-------------------------------------------------------------------------- |
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 | |
function inception($iterator = 1, $range = 0, $limit = 15, $goDeeper = true) { | |
while ($iterator < $limit) { | |
echo ($range += $iterator)%10; | |
$goDeeper and inception($iterator, $range, ($limit - 1), false); | |
++$iterator; | |
} | |
print PHP_EOL; | |
}; |
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 artisan orchestra::toolkit installer |
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 | |
Route::filter('before', function () | |
{ | |
if (Orchestra::acl()->can('Manage Orchestra')) | |
{ | |
Config::set('application.profiler', true); | |
Config::set('error.detail', true); | |
Profiler::attach(); | |
} |