Skip to content

Commit df77f40

Browse files
authored
Merge pull request #17 from TappNetwork/configuration-updates
configuration
2 parents 447363d + 71d0cd9 commit df77f40

File tree

10 files changed

+755
-533
lines changed

10 files changed

+755
-533
lines changed

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,58 @@
1+
# Filament LMS
2+
An opinionated LMS plugin for Filament containing a user facing LMS panel and Resources for an existing admin panel
3+
4+
## Installation
5+
### add the following to composer.json
6+
7+
``` json
8+
"require": {
9+
"tapp/filament-lms": "*",
10+
}
11+
```
12+
13+
``` json
14+
"minimum-stability": "dev"
15+
```
16+
17+
```json
18+
"repositories": {
19+
"tapp/filament-lms": {
20+
"type": "vcs",
21+
"url": "https://github.com/tappnetwork/filament-lms"
22+
},
23+
"tapp/filament-form-builder": {
24+
"type": "vcs",
25+
"url": "https://github.com/tappnetwork/filament-form-builder"
26+
}
27+
},
28+
```
29+
30+
### publish
31+
32+
``` sh
33+
php artisan vendor:publish --provider="Tapp\FilamentLms\FilamentLmsServiceProvider"
34+
```
35+
36+
run migrations after publishing
37+
38+
### add plugin to admin panel
39+
This will create resources that allow admin to manage course material.
40+
41+
``` php
42+
class AdminPanelProvider extends PanelProvider
43+
{
44+
public function panel(Panel $panel): Panel
45+
{
46+
return $panel
47+
->plugins([
48+
\Tapp\FilamentLms\Lms::make(),
49+
])
50+
}
51+
}
52+
```
53+
54+
55+
156
# Development Reccomendations
257
- create the directory {project}/packages
358
- from within the packages directory, clone this repo

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
"phpstan/phpstan-phpunit": "^1.3",
3737
"spatie/laravel-ray": "^1.35"
3838
},
39+
"repositories": {
40+
"tapp/filament-form-builder": {
41+
"type": "vcs",
42+
"url": "https://github.com/tappnetwork/filament-form-builder"
43+
}
44+
},
3945
"scripts": {
4046
"post-autoload-dump": "@composer run prepare",
4147
"prepare": "@php vendor/bin/testbench package:discover --ansi",
@@ -58,11 +64,5 @@
5864
"Tapp\\FilamentLms\\LmsPanelProvider"
5965
]
6066
}
61-
},
62-
"repositories": {
63-
"tapp/filament-form-builder": {
64-
"type": "vcs",
65-
"url": "https://github.com/tappnetwork/filament-form-builder"
66-
}
6767
}
6868
}

config/filament-lms.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
return [
4+
'theme' => 'default',
5+
'font' => 'Poppins',
6+
'home_url' => '/lms',
7+
'brand_name' => 'LMS',
8+
'brand_logo' => '',
9+
'vite_theme' => '',
10+
'colors' => [],
11+
];

0 commit comments

Comments
 (0)