• Stars
    star
    568
  • Rank 75,640 (Top 2 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 2 years ago
  • Updated 3 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
12,680
star
2

plugin-skeleton

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

filamentphp.com

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

spatie-laravel-media-library-plugin

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

spatie-laravel-translatable-plugin

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

forms

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

tables

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

panels

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

spatie-laravel-settings-plugin

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

notifications

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

spatie-laravel-tags-plugin

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

support

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

blog-starter-kit

PHP
10
star
14

discord-bot

JavaScript
10
star
15

widgets

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

actions

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

spatie-laravel-google-fonts-plugin

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

infolists

[READ ONLY] Subtree split of the Filament Infolist Builder (see filamentphp/filament)
PHP
4
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