• Stars
    star
    730
  • Rank 62,081 (Top 2 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 3 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source code for the demo.filamentphp.com website.

Filament Demo App

A demo application to illustrate how Filament Admin works.

Filament Demo

Open in Gitpod to edit it and preview your changes with no setup required.

Installation

Clone the repo locally:

git clone https://github.com/laravel-filament/demo.git filament-demo && cd filament-demo

Install PHP dependencies:

composer install

Setup configuration:

cp .env.example .env

Generate application key:

php artisan key:generate

Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.

touch database/database.sqlite

Run database migrations:

php artisan migrate

Run database seeder:

php artisan db:seed

Note
If you get an "Invalid datetime format (1292)" error, this is probably related to the timezone setting of your database.
Please see https://dba.stackexchange.com/questions/234270/incorrect-datetime-value-mysql

Create a symlink to the storage:

php artisan storage:link

Run the dev server (the output will give the address):

php artisan serve

You're ready to go! Visit the url in your browser, and login with:

Features to explore

Relations

BelongsTo

  • ProductResource
  • OrderResource
  • PostResource

BelongsToMany

  • CategoryResource\RelationManagers\ProductsRelationManager

HasMany

  • OrderResource\RelationManagers\PaymentsRelationManager

HasManyThrough

  • CustomerResource\RelationManagers\PaymentsRelationManager

MorphOne

  • OrderResource -> Address

MorphMany

  • ProductResource\RelationManagers\CommentsRelationManager
  • PostResource\RelationManagers\CommentsRelationManager

MorphToMany

  • BrandResource\RelationManagers\AddressRelationManager
  • CustomerResource\RelationManagers\AddressRelationManager

More Repositories

1

filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
PHP
16,513
star
2

plugin-skeleton

A package skeleton for developing Filament plugins.
PHP
165
star
3

filamentphp.com

Source code for the filamentphp.com website.
Blade
162
star
4

spatie-laravel-media-library-plugin

[READ ONLY] Subtree split of the Filament spatie/laravel-medialibrary Plugin (see filamentphp/filament)
PHP
82
star
5

spatie-laravel-translatable-plugin

[READ ONLY] Subtree split of the Filament spatie/laravel-translatable Plugin (see filamentphp/filament)
PHP
67
star
6

spatie-laravel-settings-plugin

[READ ONLY] Subtree split of the Filament spatie/laravel-settings Plugin (see filamentphp/filament)
PHP
46
star
7

forms

[READ ONLY] Subtree split of the Filament Form Builder (see filamentphp/filament)
PHP
37
star
8

panels

[READ ONLY] Subtree split of the Filament Panel Builder (see filamentphp/filament)
PHP
29
star
9

tables

[READ ONLY] Subtree split of the Filament Table Builder (see filamentphp/filament)
PHP
29
star
10

spatie-laravel-tags-plugin

[READ ONLY] Subtree split of the Filament spatie/laravel-tags Plugin (see filamentphp/filament)
PHP
22
star
11

notifications

[READ ONLY] Subtree split of Filament Notifications (see filamentphp/filament)
PHP
19
star
12

support

[READ ONLY] Subtree split of Filament's Support package (see filamentphp/filament)
PHP
18
star
13

discord-bot

JavaScript
11
star
14

blog-starter-kit

PHP
10
star
15

widgets

[READ ONLY] Subtree split of Filament Widgets (see filamentphp/filament)
PHP
5
star
16

actions

[READ ONLY] Subtree split of Filament Actions (see filamentphp/filament)
PHP
5
star
17

spatie-laravel-google-fonts-plugin

[READ ONLY] Subtree split of the Filament spatie/laravel-google-fonts Plugin (see filamentphp/filament)
PHP
5
star
18

infolists

[READ ONLY] Subtree split of the Filament Infolist Builder (see filamentphp/filament)
PHP
5
star
19

upgrade

[READ ONLY] Subtree split of the Filament upgrade script (see filamentphp/upgrade)
PHP
4
star
20

spark-billing-provider

[READ ONLY] Subtree split of the Filament Spark Billing Provider (see filamentphp/filament)
PHP
2
star