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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Storage; | |
class CreateEntities extends Command | |
{ | |
/** |
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/sh | |
POLICY_FILE=/etc/ImageMagick-6/policy.xml.bak | |
# If you would like to do some extra provisioning you may | |
# add any commands you wish to this file and they will | |
# be run after the Homestead machine is provisioned. | |
# | |
# If you have user-specific configurations you would like | |
# to apply, you may also create user-customizations.sh, |
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
$('form').each(function () { | |
if(!$(this).is('[autocomplete]') && !$(this).data('allow_autocomplete')) { | |
$(this).attr('autocomplete', 'off'); | |
} | |
}); |
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
$('.dropdown-menu.dropdown-hold-open').click(function(e) { | |
e.stopPropagation(); | |
}); |
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\Console\Commands; | |
use Illuminate\Console\Command; | |
class RunFactory extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
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
/** | |
* Put this line in index.php | |
*/ | |
$hostname = gethostname(); | |
if (($d = strpos($hostname, '.')) !== false) { | |
$hostname = substr($hostname, 0, $d); | |
} | |
putenv('APP_ENV=' . $hostname); |
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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Storage; | |
class GeneratePoliciesFromModel extends Command | |
{ | |
/** |
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 | |
# Set variables | |
PROJECT_PATH=$1 | |
SSH_KEY=${2:-~/.ssh/git} | |
LARAVEL_PROJECT=0 | |
GIT_RESET=0 | |
RUN_COMPOSER=0 | |
RUN_NPM=0 |
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 | |
echo "Setup the permission for Laravel project." | |
echo "Laravel base directory is $1" | |
echo "" | |
echo "Set owner to www-data" | |
chown -R www-data:www-data $1 | |
echo "" | |
echo "Set all files to 644" |
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/sh | |
# Before commit minify the assets | |
yarn run prod | |
# Add files (if has some new files) | |
git add ./public |
NewerOlder