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 DeleteCascadeTrait | |
* | |
* Simplify the process of delete cascade in eloquent. | |
* | |
* use DeleteCascadeTrait; | |
* public static function getDeleteCascadeRelations() { return array('myrelation'); } | |
*/ |
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 | |
/** | |
* Create headers from an xml string consisting of a hierarchy of nodes with attributes | |
* (ex: <header name="A"> <header name="AB" /> <header name="AC"> <header name="AD" /> </header> </header> | |
* | |
* @param string $content XML string containing hierarchy of nodes | |
* @return void | |
*/ | |
public function hfxParseContent($content) { |
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 | |
### --- Snip --- ### | |
App::after(function($request, $response) | |
{ | |
// HTML Minification | |
if(App::Environment() != 'local') | |
{ | |
if($response instanceof Illuminate\Http\Response) |