File tree 15 files changed +30
-30
lines changed
15 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 1
- # Why wizboard for laravel
1
+ # Waht is pondol's Laravel Board
2
2
3
3
> 한국형 라라벨용 게시판 입니다. <br />
4
4
현재 진행중인 프로젝트에 사용하려고 간단하게 만들고 테스트 중입니다. <br />
5
5
6
- > This package was testec Laravel 8.x
6
+ > This package was tested on Laravel 8.x
7
7
8
8
9
9
[ Homepage] ( https://www.onstory.fun/doc/programming/laravel/package.laravelboard )
Original file line number Diff line number Diff line change 4
4
5
5
use Auth ;
6
6
use Pondol \Bbs \BbsService ;
7
- use Pondol \Bbs \AdminBase ;
7
+ use Pondol \Bbs \Traits \ AdminTrait ;
8
8
class AdminController extends Controller
9
9
{
10
- use AdminBase ;
10
+ use AdminTrait ;
11
11
12
12
public function __construct (
13
13
BbsService $ bbsSvc
Original file line number Diff line number Diff line change 12
12
13
13
use Pondol \Bbs \Models \BbsArticles as Articles ;
14
14
use Pondol \Bbs \Models \BbsConfig ;
15
- use Pondol \Bbs \BbsBase ;
15
+ use Pondol \Bbs \Traits \ BbsTrait ;
16
16
17
17
class BbsController extends Controller
18
18
{
19
19
20
- use BbsBase ;
20
+ use BbsTrait ;
21
21
22
22
public function __construct (
23
23
BbsService $ bbsSvc
Original file line number Diff line number Diff line change 4
4
5
5
use Auth ;
6
6
use Pondol \Bbs \BbsService ;
7
- use Pondol \Bbs \CategoryBase ;
7
+ use Pondol \Bbs \Traits \ CategoryTrait ;
8
8
class CategoryController extends Controller
9
9
{
10
10
11
- use CategoryBase ;
11
+ use CategoryTrait ;
12
12
/**
13
13
* Create a new controller instance.
14
14
*
Original file line number Diff line number Diff line change 5
5
use Auth ;
6
6
use App \Http \Controllers \Controller ;
7
7
use Pondol \Bbs \Models \BbsArticles as Articles ;
8
- use Pondol \Bbs \CommentBase ;
8
+ use Pondol \Bbs \Traits \ CommentTrait ;
9
9
use Pondol \Bbs \BbsService ;
10
10
class CommentController extends Controller
11
11
{
12
12
13
- use CommentBase ;
13
+ use CommentTrait ;
14
14
/**
15
15
* Create a new controller instance.
16
16
*
Original file line number Diff line number Diff line change 6
6
use Pondol \Bbs \BbsService ;
7
7
use App \Http \Controllers \Controller ;
8
8
// use Pondol\Bbs\Models\BbsItemComment;
9
- use Pondol \Bbs \ItemCommentBase ;
9
+ use Pondol \Bbs \Traits \ ItemCommentTrait ;
10
10
11
11
class ItemCommentController extends Controller
12
12
{
13
13
14
- use ItemCommentBase ;
14
+ use ItemCommentTrait ;
15
15
// protected $itemsPerPage = 10;
16
16
17
17
/**
Original file line number Diff line number Diff line change 16
16
use Pondol \Bbs \Models \BbsComments as Comments ;
17
17
use Pondol \Bbs \Models \BbsFiles as Files ;
18
18
use App \Notifications \CountChanged ;
19
- use Pondol \Bbs \BbsBase ;
19
+ use Pondol \Bbs \Traits \ BbsTrait ;
20
20
use Pondol \Bbs \BbsService ;
21
21
22
22
class ApiController extends Controller {
23
23
24
24
25
- use BbsBase ;
25
+ use BbsTrait ;
26
26
protected $ bbsSvc ;
27
27
protected $ deaultUrlParams ;
28
28
// protected $cfg;
Original file line number Diff line number Diff line change 19
19
use Pondol \Bbs \Models \BbsFiles as Files ;
20
20
21
21
use Pondol \Image \GetHttpImage ;
22
- use Pondol \Bbs \BbsBase ;
22
+ use Pondol \Bbs \Traits \ BbsTrait ;
23
23
use Pondol \Bbs \BbsService ;
24
24
25
25
class BbsController extends Controller {
26
26
27
- use BbsBase ;
27
+ use BbsTrait ;
28
28
protected $ bbsSvc ;
29
29
protected $ cfg ;
30
30
protected $ laravel_ver ;
Original file line number Diff line number Diff line change 12
12
13
13
use Pondol \Bbs \Models \BbsArticles as Articles ;
14
14
use Pondol \Bbs \Models \BbsComments as Comments ;
15
- use Pondol \Bbs \CommentBase ;
15
+ use Pondol \Bbs \Traits \ CommentTrait ;
16
16
use Pondol \Bbs \BbsService ;
17
17
18
18
class CommentController extends Controller {
19
19
20
- use CommentBase ;
20
+ use CommentTrait ;
21
21
22
22
protected $ cfg ;
23
23
public function __construct (BbsService $ bbsSvc ) {
Original file line number Diff line number Diff line change 10
10
11
11
use App \Http \Controllers \Controller ;
12
12
use Pondol \Bbs \Models \BbsItemComment ;
13
- use Pondol \Bbs \ItemCommentBase ;
13
+ use Pondol \Bbs \Traits \ ItemCommentTrait ;
14
14
15
15
16
16
// use Pondol\Bbs\BbsService;
17
17
18
18
class ItemCommentController extends Controller {
19
- use ItemCommentBase ;
19
+ use ItemCommentTrait ;
20
20
protected $ cfg ;
21
21
public function __construct () {
22
22
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Pondol \Bbs ;
2
+ namespace Pondol \Bbs \ Traits ;
3
3
4
4
use Illuminate \Http \Request ;
5
5
use Illuminate \Http \Response ;
12
12
use Pondol \Bbs \Models \Role ;
13
13
use Pondol \Bbs \Models \BbsConfig ;
14
14
15
- trait AdminBase {
15
+ trait AdminTrait {
16
16
protected $ cfg ;
17
17
protected $ itemsPerPage = 10 ;
18
18
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Pondol \Bbs ;
2
+ namespace Pondol \Bbs \ Traits ;
3
3
4
4
use Illuminate \Http \Request ;
5
5
use Illuminate \Support \Facades \Log ;
21
21
use Pondol \Bbs \BbsService ;
22
22
23
23
24
- trait BbsBase {
24
+ trait BbsTrait {
25
25
26
26
// protected $bbsSvc;
27
27
// protected $cfg;
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Pondol \Bbs ;
2
+ namespace Pondol \Bbs \ Traits ;
3
3
4
4
use Illuminate \Http \Request ;
5
5
14
14
15
15
16
16
// class CategoryBaseController extends \App\Http\Controllers\Controller {
17
- trait CategoryBase {
17
+ trait CategoryTrait {
18
18
protected $ bbsSvc ;
19
19
protected $ cfg ;
20
20
// public function __construct() {}
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Pondol \Bbs ;
2
+ namespace Pondol \Bbs \ Traits ;
3
3
4
4
use Illuminate \Http \Request ;
5
5
use Illuminate \Support \Facades \Log ;
11
11
use Pondol \Bbs \Models \BbsArticles as Articles ;
12
12
use Pondol \Bbs \Models \BbsComments as Comments ;
13
13
14
- trait CommentBase {
14
+ trait CommentTrait {
15
15
16
16
// protected $bbsSvc;
17
17
protected $ cfg ;
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Pondol \Bbs ;
2
+ namespace Pondol \Bbs \ Traits ;
3
3
4
4
use Illuminate \Http \Request ;
5
5
use Illuminate \Support \Facades \Log ;
10
10
use Pondol \Bbs \Models \BbsItemComment ;
11
11
use Pondol \Bbs \Models \BbsConfig ;
12
12
13
- trait ItemCommentBase {
13
+ trait ItemCommentTrait {
14
14
15
15
public function index ($ request , $ item ) {
16
16
$ comment = BbsItemComment::where ('bbs_item_comments.item ' , $ item );
You can’t perform that action at this time.
0 commit comments