https://github.com/resultsystems/laravel-security-router
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
#!/bin/bash | |
# Based on https://github.com/maxolasersquad/Git-Notifier/blob/master/gitnotify.sh | |
declare -A GN_LASTSHOW | |
GN_DURATION=120 | |
for GN_BRANCH in `git branch -a | grep remotes/origin/master | sed 's/ -> .*//' | sed 's/^ //'`; do | |
GN_BRANCH_ARRAY=`echo ${GN_BRANCH} | sed 's/\//_/g'` |
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\Support\Validators; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Validation\Factory as ValidatorFactory; | |
class CustomValidatorsServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
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 | |
// https://github.com/laravel/framework/blob/5.1/src/Illuminate/Foundation/helpers.php#L56 | |
// https://github.com/laravel/framework/blob/5.1/src/Illuminate/Container/Container.php#L1128 | |
// https://github.com/laravel/framework/blob/5.1/src/Illuminate/Container/Container.php#L614 | |
$query = app(User::class)->newQuery(); | |
$query = app()->make(User::class)->newQuery(); | |
$query = app()->make('\App\Domains\Users\User')->newQuery(); | |
$modelClass = User::class; | |
$query = app($modelClass)->newQuery(); |
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\Support\ViewPresenter; | |
use Carbon\Carbon; | |
use Illuminate\Support\Str; | |
abstract class Presenter | |
{ | |
/** |
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
#!/bin/bash | |
# This script syncs (i.e. makes git pull) on a specified directory or, se no | |
# parameter was specified, in all the subdirectories that are git projects. | |
# | |
# Usage: | |
# ./auto_sync_git.sh directory_of_my_project | |
# ./auto_sync_git.sh | |
# An alias to the git binary |