Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg
http://paste.laravel.com/8D7 |
<?php | |
// Controller | |
function __construct() | |
{ | |
parent::__construct(); | |
$this->filter('before', 'role:Administrator'); | |
} | |
// filter | |
Route::filter('role', function($role) | |
{ |
<?php // bundles/api_v1/controllers/example.php | |
class Api_V1_Example_Controller extends Controller | |
{ | |
public $restful = True; | |
public function get_hello($name='World') | |
{ | |
return "Hello, {$name}!"; | |
} |
env ARCHFLAGS="-arch x86_64" sudo gem install mysql -v='2.9.0' -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg
A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).
# Initial setup | |
git clone -o framework -b develop https://github.com/laravel/laravel.git project-name | |
cd project-name | |
git checkout --orphan master | |
git commit -m "Initial commit" | |
# Pulling changes | |
git fetch framework | |
git merge --squash -m "Upgrade Laravel" framework/develop | |
# Fix merge conflicts if any and commit |
A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).
$ npm install ember-tools | |
$ export PATH=/usr/local/share/npm/lib/node_modules/ember-tools/bin:$PATH |
/** | |
* Make array Keys = Values | |
* | |
* @return array | |
*/ | |
function dictionary($array = array()) | |
{ | |
return array_combine(array_values($array), array_values($array)); | |
} |