Skip to content

Commit f7638ff

Browse files
Merge pull request #653 from JoshKisb/main
General settings update
2 parents 2e421de + 91d92b7 commit f7638ff

File tree

14 files changed

+95
-252
lines changed

14 files changed

+95
-252
lines changed

app/Filament/Admin/Pages/ManageGeneralSettings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class ManageGeneralSettings extends SettingsPage
2525
public function form(Schema $schema): Schema
2626
{
2727
return $schema
28+
->columns(1)
2829
->components([
2930
Section::make('Site Information')
3031
->schema([

app/Filament/Admin/Pages/Settings.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ class Settings extends Page
1111
protected string $view = 'filament.admin.pages.settings';
1212

1313
protected static ?int $navigationSort = 10;
14+
15+
protected static bool $shouldRegisterNavigation = false;
1416
}

app/Helpers/SiteSettingsHelper.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/Settings/GeneralSettings.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace App\Settings;
4+
5+
use Spatie\LaravelSettings\Settings;
6+
7+
class GeneralSettings extends Settings
8+
{
9+
10+
public string $site_name;
11+
public string $site_email;
12+
public ?string $site_phone;
13+
public ?string $site_address;
14+
public ?string $site_country;
15+
public string $site_currency;
16+
public string $site_default_language;
17+
public ?string $facebook_url;
18+
public ?string $twitter_url;
19+
public ?string $github_url;
20+
public ?string $youtube_url;
21+
public string $footer_copyright;
22+
23+
public static function group(): string
24+
{
25+
return 'general';
26+
}
27+
}

database/seeders/DatabaseSeeder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function run(): void
2727
DefaultTeamSeeder::class,
2828
UserSeeder::class,
2929
MenuSeeder::class,
30+
SiteSettingsSeeder::class,
3031
DummyDataSeeder::class,
3132
]);
3233
}

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"vite": "^7.1.9"
1818
},
1919
"dependencies": {
20+
"@fortawesome/fontawesome-free": "^7.1.0",
2021
"@tailwindcss/postcss": "^4.1.11",
2122
"flowbite": "^3.1.2",
2223
"preline": "3.2",

public/build/manifest.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
2+
"node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2": {
3+
"file": "assets/fa-brands-400-BfBXV7Mm.woff2",
4+
"src": "node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2"
5+
},
6+
"node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2": {
7+
"file": "assets/fa-solid-900-8GirhLYJ.woff2",
8+
"src": "node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2"
9+
},
210
"resources/css/app.css": {
3-
"file": "assets/app-jOz8CJ2s.css",
11+
"file": "assets/app-D50J1gOp.css",
412
"src": "resources/css/app.css",
513
"isEntry": true,
614
"names": [

resources/css/app.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
@import 'tailwindcss';
22

3+
@import '@fortawesome/fontawesome-free/css/fontawesome';
4+
@import '@fortawesome/fontawesome-free/css/solid';
5+
@import '@fortawesome/fontawesome-free/css/brands';
6+
7+
8+
39
/* Custom CSS Variables for Design System */
410
:root {
511
--primary-50: #eff6ff;

resources/views/components/footer.blade.php

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)