###1. Put this web.config in laravel root diretory
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
| (function (window) { | |
| "use strict"; | |
| var forEach = Array.prototype.forEach; | |
| var Event = function (nodeList) { | |
| this.nodeList = nodeList; | |
| }; | |
| var proto = Event.prototype; |
| # -*- coding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| import re | |
| class NotMatchingException(Exception): | |
| pass | |
| """ | |
| This class represente a route | |
| """ |
| <?php | |
| // Substituir `App::error` pelo código abaixo: | |
| App::error(function (Exception $exception, $code) { | |
| // Se a aplicação estiver no "local" ou erro for "página não encontrada", não envia | |
| if ($code === 404 || App::isLocal()) return; | |
| //Log::error($exception); |
| // Implementation in ES6 | |
| function pagination(c, m) { | |
| var current = c, | |
| last = m, | |
| delta = 2, | |
| left = current - delta, | |
| right = current + delta + 1, | |
| range = [], | |
| rangeWithDots = [], | |
| l; |
| location ~ \.php$ { | |
| try_files $uri =404; | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/run/php-fpm/php-fpm.sock; | |
| fastcgi_index index.php; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| include fastcgi_params; | |
| } |
| <?php | |
| function detect_encoding($string, $pattern_size = 50) | |
| { | |
| $list = array('cp1251', 'utf-8', 'ascii', '855', 'KOI8R', 'ISO-IR-111', 'CP866', 'KOI8U'); | |
| $c = strlen($string); | |
| if ($c > $pattern_size) | |
| { | |
| $string = substr($string, floor(($c - $pattern_size) /2), $pattern_size); | |
| $c = $pattern_size; |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| Function.prototype.bind=Function.prototype.bind||function(b){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");}var a=Array.prototype.slice,f=a.call(arguments,1),e=this,c=function(){},d=function(){return e.apply(this instanceof c?this:b||window,f.concat(a.call(arguments)));};c.prototype=this.prototype;d.prototype=new c();return d;}; |
| ;(function(Modernizr, window) { | |
| Modernizr.addTest('positionfixed', function () { | |
| var test = document.createElement('div'), | |
| control = test.cloneNode(false), | |
| fake = false, | |
| root = document.body || (function () { | |
| fake = true; | |
| return document.documentElement.appendChild(document.createElement('body')); | |
| }()); |