Skip to content

Instantly share code, notes, and snippets.

View da-mask's full-sized avatar
🎯
Focusing

da-mask da-mask

🎯
Focusing
View GitHub Profile
@da-mask
da-mask / deploy.sh
Last active January 31, 2024 00:07 — forked from BenSampo/deploy.sh
Laravel deploy script
#!/bin/zsh
cleanup() {
# Turn off maintenance mode
php artisan up
echo "💥 Deployment of Main App finished with errors!! 😭 "
}
if [ $# -eq 0 ]; then
echo "No release version specified. Exiting.."
@da-mask
da-mask / example.html
Created March 15, 2021 03:37 — forked from mattstauffer/example.html
Example of logging Laravel Livewiure component state
<script src="{{ asset('js/app.js') }}"></script>
<script>
let logComponentsData = function () {
window.livewire.components.components().forEach(component => {
console.log(component.name);
console.log(component.data);
});
};
document.addEventListener("livewire:load", function(event) {