Skip to content

Instantly share code, notes, and snippets.

View chrispian's full-sized avatar

Chrispian chrispian

View GitHub Profile
@chrispian
chrispian / custom-header.blade.php
Last active May 22, 2024 16:40
Custom Widget Display
<x-filament::section
collapsible
collapsed
persist-collapsed
compact
id="case-log-widgets"
col-span-3
>
<x-slot name="heading">
Stats
@chrispian
chrispian / BlockSettings.php
Created November 17, 2022 16:59 — forked from awcodes/BlockSettings.php
Filament Block Settings
<?php
namespace App\Forms\Components;
use Filament\Forms\Components\Group;
class BlockSettings extends Group
{
protected string $view = 'filament.forms.components.block-settings';
@chrispian
chrispian / FilamentCardTableLayout.php
Created November 17, 2022 16:50 — forked from AAbosham/FilamentCardTableLayout.php
Filament Card Table Layout
<?php
namespace App\Filament\Resources\Trip;
//...
class PlaceResource extends Resource
{
public static function table(Table $table): Table
{
return $table
The error is for resource/views/layouts/guest.blade.php:14 require and here are the contents. It's the @vite line
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
@chrispian
chrispian / gravityforms_disable_tab_index
Created March 26, 2021 23:06
Disable automatic tab indexing as it often causes problems
`add_filter( 'gform_tabindex', '__return_false' );`
// Disable automatic tab indexing as it often causes problems - via Jeffrey @ WebDevStudios
@chrispian
chrispian / wp-metabox-oop-example.php
Created March 26, 2021 21:46
Create WordPress metaboxes OOP style
<?php
/**
* Plugin Name: CHB Meta Box test
* Plugin URI: http://www.chrispian.com
* Description: Just testing out OOP Meta Boxes.
* Version: 0.0.1
* Requires at least: 5.3
* Requires PHP: 7.2
* Author: Chrispian H. Burks
* Author URI: http://chrispian.com
@chrispian
chrispian / xdebug-laravel
Created March 25, 2021 00:54
xdebug php.ini settings for Laravel
# If using artisan tinker you need to pause the listener then start artisan and then restart the listener.
# When finished, you need to pause and restart as well.
#Set PhpStorm to listen on port 9090, and turn on the listener
[xdebug]
xdebug.remote_enable=1
xdebug.remote_port=9090
xdebug.idekey=PHPSTORM
xdebug.remote_host=localhost
xdebug.remote_autostart=on
@chrispian
chrispian / xdebug-local
Created March 25, 2021 00:53
xdebug config for php.ini in Local by Flywheel
[Xdebug]
# Make sure to point to the correct php version for this local.
zend_extension = /opt/php/7.2.0/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=On
xdebug.remote_port=9090
xdebug.profiler_enable=0
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
@chrispian
chrispian / cloudSettings
Last active September 9, 2020 01:47
VS Code Settings
{"lastUpload":"2020-09-09T01:47:02.847Z","extensionVersion":"v3.4.3"}