This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Illuminate\Support\Facades\Log; | |
trait HasCrudLogs | |
{ | |
public static function bootHasCrudLogs(): void | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!function_exists('route_is')) { | |
function route_is(string|array $routeNames): bool | |
{ | |
$currentRoute = \Illuminate\Support\Facades\Route::currentRouteName(); | |
$routeNames = (array) $routeNames; | |
return collect($routeNames)->contains(fn($routeName) => \Illuminate\Support\Str::is($routeName, $currentRoute)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.m-0 { | |
margin: 0 !important; | |
} | |
.m-1 { | |
margin: 0.25rem !important; | |
} | |
.m-2 { | |
margin: 0.5rem !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["2001:4860:4801:2008::1","2001:4860:4801:2008::2","2001:4860:4801:2008::3","2001:4860:4801:2008::4","2001:4860:4801:2008::5","2001:4860:4801:2008::6","2001:4860:4801:2008::7","2001:4860:4801:2008::8","2001:4860:4801:2008::9","2001:4860:4801:2008::10","2001:4860:4801:2008::11","2001:4860:4801:2008::12","2001:4860:4801:2008::13","2001:4860:4801:2008::14","2001:4860:4801:2008::15","2001:4860:4801:2008::16","2001:4860:4801:2008::17","2001:4860:4801:2008::18","2001:4860:4801:2008::19","2001:4860:4801:2008::20","2001:4860:4801:2008::21","2001:4860:4801:2008::22","2001:4860:4801:2008::23","2001:4860:4801:2008::24","2001:4860:4801:2008::25","2001:4860:4801:2008::26","2001:4860:4801:2008::27","2001:4860:4801:2008::28","2001:4860:4801:2008::29","2001:4860:4801:2008::30","2001:4860:4801:2008::31","2001:4860:4801:2008::32","2001:4860:4801:2008::33","2001:4860:4801:2008::34","2001:4860:4801:2008::35","2001:4860:4801:2008::36","2001:4860:4801:2008::37","2001:4860:4801:2008::38","2001:4860:4801:2008::39","2001:4860:4801:20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Rob W <[email protected]> | |
* @website https://stackoverflow.com/a/7513356/938089 | |
* @version 20190409 | |
* @description Executes function on a framed YouTube video (see website link) | |
* For a full list of possible functions, see: | |
* https://developers.google.com/youtube/js_api_reference | |
* @param String frame_id The id of (the div containing) the frame | |
* @param String func Desired function to call, eg. "playVideo" | |
* (Function) Function to call when the player is ready. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Top */ | |
.mt-10 { | |
margin-top: 10px; | |
} | |
.mt-20 { | |
margin-top: 20px; | |
} | |
.mt-30 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pa='php artisan' | |
alias pas='pa serve' | |
alias pam='pa migrate' | |
alias pamf='pa migrate:fresh' | |
alias pamfs='pamf --seed' | |
alias migration='pa make:migration' | |
alias model='pa make:model' | |
alias controller='pa make:controller' | |
alias policy='pa make:policy' | |
alias middleware='pa make:middleware' |