Append this to your ~/.zshrc file.
function preexec() {
timer=$(($(date +%s%0N)/1000000))| Place the TraitMakeCommand.php file inside App\Console\Commands | |
| Place the trait.stub file inside App\Console\Commands\stubs |
| // Add a 401 response interceptor | |
| window.axios.interceptors.response.use(function (response) { | |
| return response; | |
| }, function (error) { | |
| if (401 === error.response.status) { | |
| swal({ | |
| title: "Session Expired", | |
| text: "Your session has expired. Would you like to be redirected to the login page?", | |
| type: "warning", | |
| showCancelButton: true, |
| @echo off | |
| rem ************************************************************ | |
| rem Installs Kafka (and Zookeeper) as services and runs them | |
| rem ************************************************************ | |
| set NSSM_VER=2.24 | |
| set TMP_ROOT=c:\tmp | |
| set OPT_ROOT=c:\opt | |
| set KAFKA_ROOT=%OPT_ROOT%\kafka |
| <?php | |
| // Put your device token here (without spaces): | |
| $deviceToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
| // Put your private key's passphrase here: | |
| $passphrase = 'xxxxxxx'; | |
| // Put your alert message here: | |
| $message = 'A push notification has been sent!'; |