Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit b174b17

Browse files
author
GoodM4ven
committed
Release v1.1.0
- Included `/public/build` in version-control - Added Filament's domain config to env files - Built Filament's theme to honor Tailwind's colors - Installed `tippy.js` - Added a new [css/filament.css] to Vite's entry-points - Created a [FilamentServiceProvider] - Removed Spatie's Google Fonts package - Relied on normal font links instead (faster) - Specified `font-mulish` to be the font-family instead - Integrated good-loader package - Created a [HomeController] - Moved in the original `home` view - Added a `/login` 404 response! - Updated [README]
1 parent 0c05bd4 commit b174b17

File tree

24 files changed

+659
-142
lines changed

24 files changed

+659
-142
lines changed

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
APP_NAME="Tall Stack" # "Application Name"
22
APP_ENV=local
3-
APP_KEY=
3+
APP_KEY=# MUST BE GENERATED
44
APP_DEBUG=true
55
APP_URL=http://localhost
66

7-
FILAMENT_PATH=admin # http://localhost/admin
7+
FILAMENT_DOMAIN="http://localhost"
8+
FILAMENT_PATH="admin" # http://localhost/admin
89
ENV_USER_NAME=# REQUIRED
910
ENV_USER_EMAIL=# REQUIRED
1011
ENV_USER_PASSWORD=# REQUIRED
@@ -17,7 +18,6 @@ DB_USERNAME=sail
1718
DB_PASSWORD=password
1819

1920
FILESYSTEM_DISK=s3
20-
GOOGLE_FONTS_DISK=s3
2121
MEDIA_DISK=s3
2222
FILAMENT_FILESYSTEM_DRIVER=s3
2323

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ APP_KEY=# REQUIRED
44
APP_DEBUG=false
55
APP_URL=# REQUIRED
66

7+
FILAMENT_DOMAIN=# REQUIRED
78
FILAMENT_PATH=# REQUIRED
89
ENV_USER_NAME=# REQUIRED
910
ENV_USER_EMAIL=# REQUIRED
@@ -17,7 +18,6 @@ DB_USERNAME=# REQUIRED
1718
DB_PASSWORD=# REQUIRED
1819

1920
FILESYSTEM_DISK=s3
20-
GOOGLE_FONTS_DISK=s3
2121
MEDIA_DISK=s3
2222
FILAMENT_FILESYSTEM_DRIVER=s3
2323

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/node_modules
2-
/public/build
32
/public/hot
43
/public/storage
54
/storage/*.key

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@ Until the customization feature is ready, this preset is clearly *opinionated*.
3030
- [Livewire](https://laravel-livewire.com) v2.10.6
3131
- [Laravel](https://laravel.com) v9.20.0
3232
- [Vite.js](https://vitejs.dev/guide/why.html#the-problems) v3.0.2 (**Livewire Supportive**)
33+
- [TALL Stack Builder](https://github.com/GoodM4ven/tall-stack-builder) v1.0.0
3334

3435
### Opinionated (To Be Optional)
3536

3637
- [Pest](https://pestphp.com) v1.2.0 (Testing Framework)
3738
- [Laravel Telescope](https://laravel.com/docs/telescope) v4.9.0 (Local Only)
3839
- [Laravel Scout](https://laravel.com/docs/scout) v9.4.10 (**Database** Driver)
39-
- [Google Fonts](https://github.com/spatie/laravel-google-fonts) v1.2.0
4040
- [Media-Library](https://github.com/spatie/laravel-medialibrary) v10.4.1
4141
- [Filament](https://filamentphp.com) v2.0.0 ([Admin](https://filamentphp.com/docs/admin), [Forms](https://filamentphp.com/docs/forms) and [Tables](https://filamentphp.com/docs/tables))
4242
- Including Spatie's [Media-Library](https://filamentphp.com/docs/2.x/spatie-laravel-media-library-plugin/installation) Plugin
43+
- [Good Loader](https://github.com/GoodM4ven/good-loader) v1.1.1
4344

4445
### Modifications
4546

@@ -51,6 +52,8 @@ Until the customization feature is ready, this preset is clearly *opinionated*.
5152

5253
- Set a lot of essential and supportive VSC [`extensions`](https://github.com/GoodM4ven/tall-stack/blob/master/.devcontainer/devcontainer.json#L11) to be installed along the environment.
5354

55+
> **Note** [PHP Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client) has a quick command to `Index workspace` for some PHP intellisense.
56+
5457
- Included the following in version-control:
5558

5659
- Essential [settings](.vscode/settings.json) for VSC and its extensions.
@@ -61,6 +64,8 @@ Until the customization feature is ready, this preset is clearly *opinionated*.
6164

6265
- Xdebug dev-container VSC settings to start debugging easily.
6366

67+
- Vite's built-assets directory [/public/build].
68+
6469
- Configured Vite.js to hot-reload the page upon file changes while preserving the state of Livewire components...
6570

6671
> **Note**
@@ -79,6 +84,8 @@ Until the customization feature is ready, this preset is clearly *opinionated*.
7984

8085
- Livewire's **temporary** upload filesystem is set to `local` though.
8186

87+
> **Warning** Remember to set your PHP's "max file upload size" and "max execution time" in production before uploading anything!
88+
8289
- Livewire's **default `layout`** was set to the custom `master` layout we've created.
8390

8491
- Some styles are defined in [`tailwind.config.js`](https://github.com/GoodM4ven/tall-stack/blob/master/tailwind.config.js) file, including:
@@ -91,17 +98,19 @@ Until the customization feature is ready, this preset is clearly *opinionated*.
9198

9299
- (Click Laravel's logo in the home page! 😉)
93100

94-
- Added `Mulish` as the default font via the Google Fonts package, and set its storage to `s3`.
101+
- Specified `font-mulish` as a font-family class.
95102

96103
- Set `visibility` to `public` in Media-Libary's config file, and set the storage to `s3`.
97104

98-
- Modified filament configurations as follows:
105+
- Built Filament's theme to honor Tailwind's colors, and used it in a dedicated [service provider](app/Providers/FilamentServiceProvider.php).
106+
107+
- Modified Filament's configurations as follows:
99108

100109
- Enabled dark mode.
101110

102111
- Hidden the 2 widgets from the default dashboard, and the default logo.
103112

104-
- Added the default `favicon.ico` we've got for the app.
113+
- Linked to the default `favicon.ico` we've got for the app.
105114

106115
- Set the default notification alignment to `top`/`right`.
107116

@@ -121,12 +130,18 @@ Until the customization feature is ready, this preset is clearly *opinionated*.
121130

122131
- Designed a [`master`](https://github.com/GoodM4ven/tall-stack/blob/master/resources/views/components/layouts/master.blade.php) layout component, with `@stack()`s for various elements.
123132

133+
- Applied `@goodLoader` directive to fade the view in.
134+
124135
- Redesigned a [`home`](https://github.com/GoodM4ven/tall-stack/blob/master/resources/views/home.blade.php) view to shout out for the TALL stack!
125136

126137
- Replacing the default route with one for `home`, of course.
127138

128139
- Pointing `RouteServiceProvider`'s `HOME` constant to `/`.
129140

141+
- Added `Mulish` font link from [Google Fonts](https://fonts.google.com/specimen/Mulish).
142+
143+
- Aborted `/login` requests with `404`.
144+
130145
- Organized the original environment variables and package-specific ones.
131146

132147
</p>
@@ -139,7 +154,7 @@ Until the customization feature is ready, this preset is clearly *opinionated*.
139154

140155
- Allowed this user to [access Filament](app/Models/User.php#L31) in production.
141156

142-
- Added an environment variable, `PASSWORD_TIMEOUT`, which points to the setting in `config/auth.php` file.
157+
- Added an environment variable, `PASSWORD_TIMEOUT`, which points to the setting in [`config/auth.php`](config/auth.php#L109) file.
143158

144159
</p>
145160
</details>
@@ -241,7 +256,7 @@ Now you can visit **[`http://localhost`](http://localhost)** and build something
241256
242257
- If you're on Windows, there is an additional step shown in; follow the [Linux Host IP Configuration](https://laravel.com/docs/9.x/sail#debugging-with-xdebug) section in the docs.
243258

244-
### Destrcution
259+
### Destruction
245260

246261
If you're done with the project and wish to **delete** it completely, do the following:
247262
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
class HomeController extends Controller
8+
{
9+
public function home()
10+
{
11+
return view('home');
12+
}
13+
14+
public function login()
15+
{
16+
return abort(404);
17+
}
18+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace App\Providers;
4+
5+
use Filament\Facades\Filament;
6+
use Illuminate\Foundation\Vite;
7+
use Illuminate\Support\ServiceProvider;
8+
9+
class FilamentServiceProvider extends ServiceProvider
10+
{
11+
/**
12+
* Register services.
13+
*
14+
* @return void
15+
*/
16+
public function register()
17+
{
18+
//
19+
}
20+
21+
/**
22+
* Bootstrap services.
23+
*
24+
* @return void
25+
*/
26+
public function boot()
27+
{
28+
Filament::serving(function () {
29+
Filament::registerTheme(
30+
app(Vite::class)('resources/css/filament.css'),
31+
);
32+
});
33+
}
34+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"filament/forms": "^2.0",
2525
"filament/spatie-laravel-media-library-plugin": "^2.0",
2626
"filament/tables": "^2.0",
27+
"goodm4ven/good-loader": "^1.1",
2728
"goodm4ven/tall-stack-builder": "^1.0.0",
2829
"guzzlehttp/guzzle": "^7.2",
2930
"laravel/framework": "^9.21",
@@ -32,7 +33,6 @@
3233
"laravel/tinker": "^2.7",
3334
"league/flysystem-aws-s3-v3": "^3.0",
3435
"livewire/livewire": "^2.10",
35-
"spatie/laravel-google-fonts": "^1.2",
3636
"spatie/laravel-medialibrary": "^10.0.0"
3737
},
3838
"require-dev": {

composer.lock

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

config/app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
// App\Providers\BroadcastServiceProvider::class,
195195
App\Providers\EventServiceProvider::class,
196196
App\Providers\RouteServiceProvider::class,
197+
App\Providers\FilamentServiceProvider::class,
197198

198199
],
199200

0 commit comments

Comments
 (0)