JQuery Basics

Random JQuery reminders for noobs. Remember that DOM must finish loading before JS interaction. Do that by waiting on ready: jQuery(document).ready(function() { // Some code here. }); Basics: jQuery(document).ready(function() { $("h1");...

Collections

Collections are extremely powerful.  Arrays on steroids In a view, filter a collection based on a variable: @foreach($notices->where('content_removed', 0, false) as $notice) ........

Bootstrap

Bootstrap 3.0 Usage Tables <table class="table table-striped table-bordered"> <thead> <tr> <th class="col-md-4">Title</th> <th class="col-md-4">Title</th> <th...

Input, Request & Validation

Input Requests and Response Validation Files Input Input::get('key'); Input::get('key', 'default'); Input::has('key'); Input::all(); Input::only('foo', 'bar'); Input::except('foo'); Input::flush(); Session Input (flash) Input::flash(); Input::flashOnly('foo', 'bar');...

Helpers

Helper functions for Laravel. Path Helpers Array Helpers String Helpers URL Helpers Miscellaneous Helpers Path Helpers app_path(); public_path(); base_path(); storage_path(); Back to Top Array Helpers array_add($array, 'key', 'value'); array_build($array,...

Views, Forms & Blade

Views, Forms & Blade Views Blade Forms HTML Views View::make('path/to/view'); View::make('notices/index', compact('notices')); View::make('foo/bar')->with('key', 'value'); View::make('foo/bar')->withKey('value'); View::make('foo/bar', array('key' =>...

DB and Eloquent

Eloquent Cheat Sheet Eloquent Relationships Query Scopes Eloquent Basics DB Class Pagination Defining Database Schemas Eloquent Relationships Set up foreign keys for relationships in migrations with commands including:...

Welcome

This is a very simple PHP, Mysql, Centos and Laravel development blog.  Not much going on here other than a collection of bug fixes that I find, cheat sheets and general reminders! You might find something of interest.