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
function dq($query){ | |
$sql = $query->toSql(); | |
foreach($query->getBindings() as $key => $binding){ | |
$sql = preg_replace('/\?/', "'$binding'", $sql, 1); | |
} | |
dd($sql); | |
} |
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 Workerman\Lib\Timer; | |
use Workerman\Worker; | |
require __DIR__ . '/bootstrap/autoload.php'; | |
Timer::add(0.1, function () { | |
echo "First timer\n"; |
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 | |
cd /project/path | |
php artisan down | |
git pull | |
composer install | |
php artisan migrate | |
php artisan optimize |
NewerOlder