-
-
clone laradock
git clone https://github.com/Laradock/laradock.git
-
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
########################################################### | |
# General Setup | |
########################################################### | |
### Application Path ################################################################################################### | |
# Point to your code, will be available at `/var/www`. | |
APPLICATION=../ | |
### PHP Version ######################################################################################################## |
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
undefined#header{background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJIAAAArCAYAAACTvtEzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABV0RVh0Q3JlYXRpb24gVGltZQAxLzMxLzE4V8SNOAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAABFBSURBVHic7Zx5nBTVtce/t7pnpmcDZkRZVGSTVRA3FAx+sJSIhb5EwXoYXtS45OP2jBiNRsGIgglBRIlbEsWggWCFgAuUUUkRBAFBwwQXFhHZZBFkGRiYnumu+/64t+iapmeYMfN5IvTv8+lP17333HNvV517zrnnnmohpSSL7y6EEA3uM6X3xPOHLbnjvcYYP5AfozGYZfHdwZTeE8cBFzc232hjM8ziyMWMsyfes09wd1Ty4OFon176/ZyxW5t03hCPGgiZD3zI4FcStdFnNdIxgp2nTmh23t7kqJKEZG+E6rpoX1k24NrSqFzhw0fAv4EfAHX6QFmNdIwgKeiT75N/ZoVPcdLI+NzHLLrEaBfzJwv4H4CEBHzGYL8y4nD8sxrp2EGPpIB8H3pW+Ld91WnCmekE7WP+TEMLUdwXtMzxf4s97bBCBFlBOmYgoDmAD/iClgb8Y3unCb2C9qnLBjwq4L8CmpghWdBl+5P15Z8VpGMEUslHGM2ikjk+f+4wTvY4xYD70vu8vjtWVF/+WR/pKMGU3hN7ABcPW3LHhFpINoULuRK25Ijj5jVPmq23F54sIFNAqt5BqqxGOnpQJeHxl86dOLyW9iXBRa6EHVHBBwURdrYrL8rbHzWjQhL+JCRUyfpHO7Ma6ShBrsSXgC95/G9nT0xcUJ58MWirFnD8quFLdnSasDpX0unrqJCLiw2kj0gWxovuXlfSlL15B3n5QARe++Ly6Stf/teAUw04WwjaALnAjoTk04FN40 |
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
{ | |
"emmet.includeLanguages": { | |
"blade": "html" | |
}, | |
"emmet.triggerExpansionOnTab": true, | |
"blade.format.enable": true, | |
"files.associations": { | |
"*.blade.php": "html" | |
} | |
} |
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
#!/bin/bash | |
if [ "$1" == "up" ] ; then | |
cd laradock && docker-compose up -d php-fpm nginx mysql phpmyadmin | |
echo "" | |
echo "WORKDIR: http://localhost" | |
echo "" | |
echo "PHPMYADMIN: http://localhost:8080" | |
echo "" | |
elif [ "$1" == "stop" ]; then |
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 | |
include 'vendor/autoload.php'; | |
$faker = Faker\Factory::create(); | |
echo $faker->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
# | |
# Verify captcha | |
$post_data = http_build_query( | |
array( | |
'secret' => CAPTCHA_SECRET, | |
'response' => $_POST['g-recaptcha-response'], | |
'remoteip' => $_SERVER['REMOTE_ADDR'] | |
) | |
); | |
$opts = array('http' => |
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 | |
// tutorial: https://www.youtube.com/watch?v=k3KfK0ZS_FY | |
// debuger: https://jwt.io/ | |
// lcobucci/jwt | |
// Generate | |
// - - - - - | |
function token(){ |
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
find . -type f -size +500M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' |
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 | |
use Illuminate\Database\Seeder; | |
/* | |
To run on default db:seed add call to databases/seed/DatabaseSeeder.php | |
... | |
public function run() | |
{ | |
... |