Skip to content

Instantly share code, notes, and snippets.

View leemason's full-sized avatar
🎯
Focusing

Lee Mason leemason

🎯
Focusing
View GitHub Profile
<?php
### --- Snip --- ###
App::after(function($request, $response)
{
// HTML Minification
if(App::Environment() != 'local')
{
if($response instanceof Illuminate\Http\Response)
{
"my json question?" : "my json answer",
"my json question2?" : "my json answer2",
"my json question3?" : "my json answer 3"
}
<?php
//current way
$options = array(
'key1' => 'value',
'key2' => array(
'key3' => ''
)
);
<?php
public function options() {
return array(
'id'=>array('type' => 'boolean', 'required' => true),
'type'=>'button_set',
'title'=>array('type' => 'string', 'required' => true),
'subtitle'=>array('type' => 'string', 'required' => true),
'desc'=> array('type' => 'string', 'required' => true),
'required' => true,
'customizer' => true,