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
| function mime2ext($mime) { | |
| $mime_map = [ | |
| 'video/3gpp2' => '3g2', | |
| 'video/3gp' => '3gp', | |
| 'video/3gpp' => '3gp', | |
| 'application/x-compressed' => '7zip', | |
| 'audio/x-acc' => 'aac', | |
| 'audio/ac3' => 'ac3', | |
| 'application/postscript' => 'ai', | |
| 'audio/x-aiff' => 'aif', |
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
| $this->name = str_replace('Controller', '', (new \ReflectionClass($this))->getShortName()); | |
| $this->modelClass = $this->name; |
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 | |
| class BaseModel extends \Eloquent { | |
| public function getAllColumnsNames() | |
| { | |
| switch (DB::connection()->getConfig('driver')) { | |
| case 'pgsql': | |
| $query = "SELECT column_name FROM information_schema.columns WHERE table_name = '".$this->table."'"; | |
| $column_name = 'column_name'; |
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
| var host = "localhost/sig-report"; | |
| var gulp = require('gulp'); | |
| var run = require('gulp-run') | |
| var merge = require('merge-stream'); | |
| var browserSync = require('browser-sync').create(); | |
| var reload = browserSync.reload; | |
| var mainBowerFiles = require('main-bower-files'); | |
| gulp.task('default', function () { |