Skip to content

Instantly share code, notes, and snippets.

View dead23angel's full-sized avatar
🏠
Working from home

David Ange dead23angel

🏠
Working from home
View GitHub Profile
@ns139426
ns139426 / DuplicateResource.php
Last active March 5, 2025 14:53
Duplicate Resource Action for Laravel Nova
<?php
namespace App\Nova\Actions;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Collection;
use Laravel\Nova\Actions\Action;
use Laravel\Nova\Fields\ActionFields;
@paulredmond
paulredmond / .zshrc
Last active July 12, 2021 17:22
Aliases to clear Laravel logs
# Must run from the root of a Laravel app
alias clearlog="truncate -s 0 $PWD/storage/logs/laravel.log"
alias clearlogs="truncate -s 0 $PWD/storage/logs/*.log"
# Or using git rev-parse
alias clearlog="truncate -s 0 $(git rev-parse --show-toplevel)/storage/logs/laravel.log"
alias clearlogs="truncate -s 0 $(git rev-parse --show-toplevel)/storage/logs/*.log"

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting & zsh-artisan)

  • Download zsh-autosuggestions by
@LeMaX10
LeMaX10 / .bash_aliases
Last active January 13, 2025 11:52
Laravel Sail bash aliases
alias sail="vendor/bin/sail"
alias sstart="vendor/bin/sail up -d"
alias sstop="vendor/bin/sail stop"
alias srestart="vendor/bin/sail restart"
alias ss="vendor/bin/sail shell"
alias ssp="vendor/bin/sail share"
alias sexec="vendor/bin/sail exec"
alias sa="vendor/bin/sail artisan"
alias st="vendor/bin/sail tinker"
alias sn="vendor/bin/sail npm"