File tree 5 files changed +60
-17
lines changed
resources/views/bbs/layouts
5 files changed +60
-17
lines changed Original file line number Diff line number Diff line change 10
10
11
11
[ Demo] ( https://www.onstory.fun/community )
12
12
13
- [ goto old version 2.x] ( ./documents/5.x.md )
13
+ [ version 2.x installation] ( ./documents/5.x.md )
14
+ [ version 8.1.x installation] ( ./documents/8.1.x.md )
15
+
16
+
14
17
15
18
16
19
## Installation
20
+ > over ver 8.2
17
21
```
18
22
composer require wangta69/laravel_board
23
+ php artisan bbs:install
19
24
```
20
25
21
- ## Setup
26
+ ## resources
22
27
- design : bootstrp 5.x
23
28
- jquery : 3.6.x
24
29
25
- ### publish stuff
26
- ```
27
- php artisan vendor:publish
28
- ```
29
30
30
- ### create storage soft link
31
- ```
32
- php artisan storage:link
31
+ <!-- breeze install
33
32
```
33
+ composer require laravel/breeze:1.9.2 // 라라벨 8.x 일경우
34
+ php artisan breeze:install
35
+ ``` -->
34
36
35
- ### publish all Resoucres
36
- ```
37
- php artisan vendor:publish --provider="Pondol\Bbs\BbsServiceProvider"
38
- php artisan vendor:publish --provider="Pondol\Editor\EditorServiceProvider"
39
- ```
40
37
41
38
## How to Use
42
39
### Set Security for Admin.
Original file line number Diff line number Diff line change
1
+ # 8.1.x
2
+
3
+ ## Installation
4
+
5
+
6
+ ```
7
+ composer require wangta69/laravel_board
8
+ ```
9
+
10
+ ## Setup
11
+ - design : bootstrp 5.x
12
+ - jquery : 3.6.x
13
+
14
+ ### publish stuff
15
+ ```
16
+ php artisan vendor:publish
17
+ ```
18
+
19
+ ### create storage soft link
20
+ ```
21
+ php artisan storage:link
22
+ ```
23
+
24
+ ### publish all Resoucres
25
+ ```
26
+ php artisan vendor:publish --provider="Pondol\Bbs\BbsServiceProvider"
27
+ php artisan vendor:publish --provider="Pondol\Editor\EditorServiceProvider"
28
+ ```
Original file line number Diff line number Diff line change @@ -24,6 +24,14 @@ class BbsServiceProvider extends ServiceProvider {
24
24
*/
25
25
public function register ()
26
26
{
27
+
28
+ if ($ this ->app ->runningInConsole ()) {
29
+ $ this ->commands ([
30
+ Console \InstallCommand::class,
31
+ // Console\InstallCommand::class,
32
+ ]);
33
+ }
34
+
27
35
// $this->app->bind('bbs', function($app) {
28
36
$ this ->app ->singleton ('bbs ' , function ($ app ) {
29
37
return new Bbs ;
@@ -54,7 +62,7 @@ public function boot()
54
62
55
63
$ this ->loadMigrationsFrom (__DIR__ .'/migrations/ ' );
56
64
//$this->artisan('migrate');
57
- \Artisan::call ('migrate ' );
65
+ // \Artisan::call('migrate');
58
66
59
67
//if you use this one you have to command php artisan migrate
60
68
//$this->publishes([
Original file line number Diff line number Diff line change 3
3
namespace Pondol \Bbs \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Illuminate \Support \Facades \Schema ;
6
7
// use Illuminate\Filesystem\Filesystem;
7
8
// use Illuminate\Support\Str;
8
9
// use Symfony\Component\Process\PhpExecutableFinder;
@@ -54,9 +55,18 @@ private function installLaravelEditor()
54
55
'--force ' => true ,
55
56
'--provider ' => 'Pondol\Bbs\BbsServiceProvider '
56
57
]);
58
+
59
+ // users 테이블이 있는지 확인
60
+ // $user_password = $this->ask('Password for administrator?');
61
+ if (!Schema::hasTable ('users ' )) {
62
+ $ this ->info ('no users table. Install laravel/breeze or other auth ' );
63
+ };
64
+
65
+ \Artisan::call ('migrate ' );
66
+
57
67
$ this ->info ('The laravel board installed successfully. ' );
58
68
59
- $ this ->comment ('Please execute the "php artisan migrate" commands to build market database. ' );
69
+ // $this->comment('Please execute the "php artisan migrate" commands to build market database.');
60
70
}
61
71
62
72
Original file line number Diff line number Diff line change 1
- @include (' bbs. layouts.partials.header' )
1
+ @include (' bbs:: layouts.partials.header' )
2
2
@yield (' styles' )
3
3
4
4
<div class =' container' >
You can’t perform that action at this time.
0 commit comments