Skip to content

Instantly share code, notes, and snippets.

@keepanitreel
keepanitreel / select-action.php
Created December 29, 2023 01:27
FilamentPHP Select Input Actions for removing all / adding all in a Multiple Select input
/**
* Credit Sandro Gehri
* https://twitter.com/gehrisandro
*/
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Actions\Action;
Select::make('foo')
->options(['read','write','execute'])
$array_collection = collect(
[
['id'=>"1"],
['id'=>"2"],
['id'=>"3"]
]
);
$object1 = new \stdClass();
$object1->id = '1';
$object2 = new \stdClass();
@keepanitreel
keepanitreel / 0_reuse_code.js
Created August 14, 2014 12:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console