Skip to content

Instantly share code, notes, and snippets.

View IlijaT's full-sized avatar

IlijaT IlijaT

View GitHub Profile
@IlijaT
IlijaT / Laravel Deploy Commands Lists
Created March 2, 2022 10:49
Laravel Deploy commands
===========================
1. Site down
---------------------------
php artisan down
===========================
===========================
2. Git pull
---------------------------
git pull origin branch_name
@IlijaT
IlijaT / ProcessImage.php
Last active January 24, 2021 14:35
Laravel Job Class that resizes images with a max width/height while keeping the original aspect ratio using Intervention library
<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Intervention\Image\Facades\Image;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Storage;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Foundation\Bus\Dispatchable;
@IlijaT
IlijaT / custom-paginator.blade.php
Last active November 24, 2023 21:38
Laravel Livewire Custom Pagination With Tailwind
@if ($paginator->hasPages())
<div class="flex items-end my-2">
@if ( ! $paginator->onFirstPage())
{{-- First Page Link --}}
<a
class="mx-1 px-4 py-2 bg-blue-900 border-2 border-blue-900 text-white font-bold text-center hover:bg-blue-400 hover:border-blue-400 rounded-lg cursor-pointer"
wire:click="gotoPage(1)"
>
<<
@IlijaT
IlijaT / laravel_quick _start_with_sqlite.md
Last active June 22, 2021 20:07
Laravel quick start with sqlite

Laravel quick start with sqlite

  • install new Laravel project:
composer create-project --prefer-dist laravel/laravel project-name
  • .env change DB connection:
- DB_CONNECTION=mysql