This file contains hidden or 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
| namespace App\Http\Middleware; | |
| use Illuminate\Support\Facades\Log; | |
| class LogAfterRequest { | |
| public function handle($request, \Closure $next) | |
| { | |
| return $next($request); | |
| } |
This file contains hidden or 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 namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use League\Flysystem\Azure\AzureAdapter; | |
| use League\Flysystem\Filesystem; | |
| use Storage; | |
| use WindowsAzure\Common\ServicesBuilder; | |
| /** | |
| * Laravel 5 Windows Azure file system driver |
This file contains hidden or 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
| #!/bin/bash | |
| sudo mkdir /db/tmpfs | |
| sudo mount -osize=256m tmpfs /db/tmpfs -t tmpfs | |
| sudo chmod 777 /db/tmpfs | |
| # IMPORTANT edit your /etc/apparmor.d/usr.sbin.mysqld | |
| # to match your new path | |
| # so /var/lib/mysql -> /db/tmpfs/mysql/ (there must be 2 links) | |
| # Then restart apparmor /etc/init.d/apparmor restart |