Please, use the package https://github.com/vluzrmos/lumen-cors.
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
#!/usr/bin/env php | |
<?php | |
/** @var string local dir */ | |
$cwd = getcwd(); | |
/** @var array local dir subdirectories */ | |
$dirs = glob($cwd."/*", GLOB_ONLYDIR); | |
/** @var array local dir subtitles */ |
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
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
class ValidatorServiceProvider extends ServiceProvider | |
{ |
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
<?php | |
if (!function_exists('faker')) { | |
/** | |
* Generate or get a faker localized instance | |
* @param locale $l | |
* @example | |
* <code> |
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
{ | |
"php_cs_fixer_on_save": true, | |
"php_cs_fixer_additional_args": { | |
"--level": "psr2", | |
"--fixers": "-psr0" | |
} | |
} |
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
@echo Off | |
php "%~dp0NOMEDOCOMANDO.phar" %* | |
#REM [en] | |
#REM %~dp0 is the directory of the actual file (command.bat) , its like the directive __DIR__ on php. | |
#REM [pt_BR] | |
#REM %~dp0 é o diretório do arquivo atual, similar a diretiva __DIR__ do php. |
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
<?php | |
if(!function_exists('config_path')) | |
{ | |
/** | |
* Return the path to config files | |
* @param null $path | |
* @return string | |
*/ | |
function config_path($path=null) |
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
<?php | |
use Illuminate\Database\Seeder; | |
use Illuminate\Database\Eloquent\Model; | |
use App\User; | |
class DatabaseSeeder extends Seeder { | |
/** | |
* Run the database seeds. |
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
# Remove file from all commits on all branches | |
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch FILENAMEHERE" --prune-empty --tag-name-filter cat -- --all | |
# After | |
git push --all --force |