@yield('section_name')
@section('section_name')
content that will always be present
@stop
| <?php | |
| // After injecting the class into your controller, you would call it on a method like so | |
| // store here is the context | |
| // this will validate it against that set of rules | |
| $this->validator->validate(Input::all(), 'store'); |
| If you only want to update one Application icon, ie, in App.app/Contents/Resources/App.icns just touch the App.app folder. (I've read you need to do the Info.plist as well sometimes, although I've never needed to.) | |
| Close the finder windows and: | |
| touch /Applications/App.app | |
| touch /Applications/App.app/Contents/Info.plist | |
| You can refresh the dock icon cache using the commands above, also do a killall Dock to restart it. Personally I would just drag the application in question, off the dock and re-start / keep in dock, because this is generally a one off thing. As always, script it if possible / and you're doing it a lot. |
| <?php | |
| // BELIEVE THIS ONLY WORKS WHEN USING MYSQL | |
| // DROP THIS INTO GLOBAL.PHP | |
| Validator::extend('columnexists', function($attribute, $value, $parameters) | |
| { | |
| $query = DB::select("SHOW COLUMNS FROM " . $parameters[0]); |
| <?php | |
| class BaseModel extends Eloquent { | |
| public function columns(){ | |
| $table = $this->getTable(); | |
| return DB::select(" SHOW COLUMNS FROM ".$table); | |
| } |
The reflow appens as many times as there are frames per seconds. It recalculate all positions that change in order to diplay them. Basically, when you scroll you execute a function where you move things between two reflows. But there are functions that triggers reflows such as jQuery offset, scroll... So there are two things to take care about when you dynamically change objects in javascript to avoid too many reflows:
###Jeffrey Way (1) - Bootcamp
Jeffrey went through about 12 subjects one right after the other and gave tips along the way.
1. With Laravel 4.2 it’s easier to use APIs like Mailgun and Mandrill for e-mail notifications. This avoids using SMTP which is really cool.
| /* | |
| * === A JQUERY FUNCTION USED FOR SERIALIZING INTO AN OBJECT === | |
| */ | |
| $.fn.serializeObject = function() | |
| { | |
| var o = {}; | |
| var a = this.serializeArray(); | |
| $.each(a, function() { | |
| if (o[this.name] !== undefined) { |
| <?php | |
| Form::macro('textField', function($name, $label = null, $value = null, $attributes = array()) | |
| { | |
| $element = Form::text($name, $value, fieldAttributes($name, $attributes)); | |
| return fieldWrapper($name, $label, $element); | |
| }); | |
| Form::macro('passwordField', function($name, $label = null, $attributes = array()) |
| Fatal error: Call to undefined method Illuminate\Foundation\Application::registerCoreContainerAliases() in /Applications/MAMP/htdocs/laravel-demo/vendor/laravel/framework/src/Illuminate/Foundation/start.php on line 105 | |
| Script php artisan clear-compiled handling the post-update-cmd event returned with an error | |
| [RuntimeException] | |
| Error Output: | |