Skip to content

Instantly share code, notes, and snippets.

View davidgrzyb's full-sized avatar

David Grzyb davidgrzyb

View GitHub Profile
@davidgrzyb
davidgrzyb / UsersTable.php
Last active November 6, 2023 18:29
Livewire Infinite Scroll Example
<?php
namespace App\Http\Livewire;
use App\Models\User;
use Livewire\Component;
class UsersTable extends Component
{
public $totalRecords;
@davidgrzyb
davidgrzyb / deploy.sh
Created April 21, 2022 19:11 — forked from actionm/deploy.sh
Zero downtime deployment script
# Deployment with zero downtime
# By default keeps 2 last deployments in KEEP_DEPLOYMENTS_DIR and current deployment
# Project domain
PROJECT_NAME=test.com
# Project directory
PROJECT_DIR=/home/forge/test.com
# Deployments directory
KEEP_DEPLOYMENTS_DIR=/home/forge/deploy
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.