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\Http\Livewire; | |
use Livewire\Component; | |
use Illuminate\Support\Facades\Log; | |
class ErrorCatcher extends Component | |
{ | |
protected $listeners = ['getError']; |
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
sudo nano /etc/apache2/sites-available/your_domain.conf | |
sudo a2ensite your_domain.conf | |
sudo a2dissite 000-default.conf | |
sudo apache2ctl configtest | |
sudo systemctl restart apache2 |
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
@setup | |
require __DIR__.'/vendor/autoload.php'; | |
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__); | |
try { | |
$dotenv->load(); | |
$dotenv->required(['APP_NAME', 'DEPLOY_SERVER', 'DEPLOY_REPOSITORY', 'DEPLOY_PATH', 'DEPLOY_BRANCH', 'LOG_SLACK_WEBHOOK_URL'])->notEmpty(); | |
} catch ( Throwable $e ) { | |
echo $e->getMessage(); | |
exit; |
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
<template> | |
<div> | |
<label | |
v-if="label" | |
:for="id" | |
class="form-label"> | |
{{ label }} | |
</label> | |
<select | |
:id="id" |
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
<template> | |
<div> {{ isOnline }} </div> | |
</template> | |
<script setup lang="ts"> | |
const navigator = window.navigator; | |
const isOnline = ref(navigator.onLine); | |
window.addEventListener('offline', () => { | |
isOnline.value = false; |