Skip to content

Instantly share code, notes, and snippets.

@roni-estein
roni-estein / MakeViewCommand.php
Created June 23, 2018 19:46
Make View Command for Laravel 5.6, place in app/Console/Commands/ you need to register it in 5.5 and below.
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class MakeViewCommand extends Command
{
/**
* The name and signature of the console command.
@roni-estein
roni-estein / RefillComponent.php
Created April 23, 2020 02:01
Livewire form, glitching on selects
<?php
namespace App\Http\Livewire;
use App\Events\RefillRequested;
use Livewire\Component;
class RefillComponent extends Component
{
public $name = '';
@roni-estein
roni-estein / refill-component.blade.php
Created April 23, 2020 02:02
Refill Component View
<div>
<div class="flex">
<div class="max-w-md w-1/2 p-8">
<h2 class="">You can now refill online!</h2>
<form wire:submit.prevent="openConfirmation">
<label class="block pt-6">
<div class="form-label">Name: @error('name')<br>{{ $message }}@enderror</div>
@roni-estein
roni-estein / .aliases
Created October 17, 2021 08:53
Safe Nah Command Setup for MacOS
# NAHS
# Where I'm keeoing my nah related base functions.
# Main nah command
nah(){
git ls-files --exclude-standard -om | xargs -I {} bash -c 'safe-nah {}'
git clean -df
}
@roni-estein
roni-estein / .bash_aliases
Last active November 21, 2021 21:11
Shortcuts for Laravel & PHP Storm
export PATH="~/.composer/vendor/bin:$PATH"
export EDITOR='subl -w'
# export CLICOLOR=1
# export LSCOLORS=ExFxCxDxBxegedabagacad
#ALIASES
#COMMANDS