Skip to content

Commit c570343

Browse files
feat: setup initial filament resource and livewire management component
had to pause and commit this because of an emergency. Will continue later
1 parent 2d2f00e commit c570343

22 files changed

+4576
-24
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ phpstan.neon
99
testbench.yaml
1010
vendor
1111
node_modules
12+
13+
example-app

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "discoverlance-com/filament-page-hints",
2+
"name": "discoverlance/filament-page-hints",
33
"description": "Create hints for your Filament pages that can serve as a guideline for users.",
44
"keywords": [
55
"discoverlance-com",

config/filament-page-hints.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* Filament Page Hints Config
55
*/
66
return [
7+
/**
8+
* Filament page table
9+
*/
10+
'table_name' => 'filament_page_hints',
711
/**
812
* This is the icon of the hint button in the topbar
913
*/
@@ -12,7 +16,7 @@
1216
/**
1317
* The class of the hint button can be changed here
1418
*/
15-
'top_hint_class' => 'w-5 h-5 cursor-pointer text-gray-800 dark:white',
19+
'hint_class' => 'w-5 h-5 cursor-pointer text-gray-800 dark:text-white',
1620

1721
/**
1822
* Creating or updating a hint button color can be changed here

database/migrations/create_filament_page_hints_table.php.stub

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ return new class extends Migration
88
{
99
public function up()
1010
{
11-
Schema::create('filament_page_hints_table', function (Blueprint $table) {
11+
$tableName = config('filament-page-hints.table_name');
12+
Schema::create($tableName, function (Blueprint $table) {
1213
$table->id();
1314
$table->uuid();
1415

@@ -23,6 +24,7 @@ return new class extends Migration
2324
}
2425

2526
public function down() {
26-
Schema::drop('filament_page_hints_table');
27+
$tableName = config('filament-page-hints.table_name');
28+
Schema::drop($tableName);
2729
}
2830
};

dist/filament-page-hints.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)