In Laravel 3 URL::secure/Redirect::secure got overridden by the ssl config. Nice for testing locally when you don't have ssl setup.
In Laravel 4 they took it out. Why? Fuck knows...
Anyway heres how to get it working again.
- Step 1
In Laravel 3 URL::secure/Redirect::secure got overridden by the ssl config. Nice for testing locally when you don't have ssl setup.
In Laravel 4 they took it out. Why? Fuck knows...
Anyway heres how to get it working again.
| function getContentType() { | |
| var type = "text/html", | |
| rXHTML_XML = /application\/xhtml\+xml/i, | |
| element = $(document).find("meta[content][http-equiv='Content-Type']"); | |
| if( element.length ) { | |
| content = element.attr("content"); | |
| { scopeName = 'source.rs'; | |
| comment = 'Rust Syntax: version 0.1'; | |
| fileTypes = ( 'rs', 'jsx' ); | |
| foldingStartMarker = '^.*\bfn\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$'; | |
| foldingStopMarker = '^\s*\}'; | |
| patterns = ( | |
| { name = 'meta.class.rs'; | |
| comment = 'match stuff like: Sound.prototype = { … } when extending an object'; | |
| match = '([a-zA-Z_?.$][\w?.$]*)\.(prototype)\s*(=)\s*'; | |
| captures = { |