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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package Filtering; | |
import java.io.File; | |
/** |
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
// Body | |
$body-bg: #f5f8fa; | |
// Borders | |
$laravel-border-color: darken($body-bg, 10%); | |
$list-group-border: $laravel-border-color; | |
$navbar-default-border: $laravel-border-color; | |
$panel-default-border: $laravel-border-color; | |
$panel-inner-border: $laravel-border-color; |
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
/*----------------------- | |
* CALLBACK | |
*----------------------- | |
*/ | |
function get (callback) { | |
return setTimeout(() => callback('learn'), 100); | |
} | |
function process (value, callback) { | |
return setTimeout(() => callback(`${value} asynchronous`), 100); |
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
Route::get('/media/img/{filename}', function($filename) { | |
$path = storage_path('app/public/' . $filename); | |
if (! \File::exists($path)) | |
abort(404); | |
$file = \File::get($path); | |
$type = \File::mimeType($path); | |
return response($file, 200)->header('Content-Type', $type); | |
}); |