@@ -9,8 +9,8 @@ |
||
9 | 9 | protected $table = 'menus'; |
10 | 10 | |
11 | 11 | public function __construct( array $attributes = [] ){ |
12 | - //parent::construct( $attributes ); |
|
13 | - $this->table = config('menu.table_prefix') . config('menu.table_name_menus'); |
|
12 | + //parent::construct( $attributes ); |
|
13 | + $this->table = config('menu.table_prefix') . config('menu.table_name_menus'); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | public static function byName($name) |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | class Content extends Eloquent |
10 | 10 | { |
11 | - /** |
|
11 | + /** |
|
12 | 12 | * The attributes that are mass assignable. |
13 | 13 | * |
14 | 14 | * @var array |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $contentStart += $startDelimiterLength; |
111 | 111 | $contentEnd = strpos($str, $endDelimiter, $contentStart); |
112 | 112 | if (false === $contentEnd) { |
113 | - break; |
|
113 | + break; |
|
114 | 114 | } |
115 | 115 | $contents[] = substr($str, $contentStart, $contentEnd - $contentStart); |
116 | 116 | $startFrom = $contentEnd + $endDelimiterLength; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class Redirect extends Eloquent |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The attributes that are mass assignable. |
11 | 11 | * |
12 | 12 | * @var array |
@@ -7,7 +7,7 @@ |
||
7 | 7 | class Template extends Eloquent |
8 | 8 | { |
9 | 9 | public function pages(){ |
10 | - return $this->hasMany('Chuckbe\Chuckcms\Models\Page'); |
|
10 | + return $this->hasMany('Chuckbe\Chuckcms\Models\Page'); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | protected $casts = [ |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | class Form extends Eloquent |
10 | 10 | { |
11 | - /** |
|
11 | + /** |
|
12 | 12 | * The attributes that are mass assignable. |
13 | 13 | * |
14 | 14 | * @var array |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $contentStart += $startDelimiterLength; |
149 | 149 | $contentEnd = strpos($str, $endDelimiter, $contentStart); |
150 | 150 | if (false === $contentEnd) { |
151 | - break; |
|
151 | + break; |
|
152 | 152 | } |
153 | 153 | $contents[] = substr($str, $contentStart, $contentEnd - $contentStart); |
154 | 154 | $startFrom = $contentEnd + $endDelimiterLength; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class Site extends Eloquent |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The attributes that are mass assignable. |
11 | 11 | * |
12 | 12 | * @var array |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class Repeater extends Eloquent |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The attributes that are mass assignable. |
11 | 11 | * |
12 | 12 | * @var array |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class FormEntry extends Eloquent |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The attributes that are mass assignable. |
11 | 11 | * |
12 | 12 | * @var array |
@@ -7,21 +7,21 @@ |
||
7 | 7 | class MenuItems extends Eloquent |
8 | 8 | { |
9 | 9 | |
10 | - protected $table = null; |
|
10 | + protected $table = null; |
|
11 | 11 | |
12 | - public function __construct( array $attributes = [] ){ |
|
13 | - //parent::construct( $attributes ); |
|
14 | - $this->table = config('menu.table_prefix') . config('menu.table_name_items'); |
|
12 | + public function __construct( array $attributes = [] ){ |
|
13 | + //parent::construct( $attributes ); |
|
14 | + $this->table = config('menu.table_prefix') . config('menu.table_name_items'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public function getsons($id) { |
18 | - return $this -> where("parent", $id) -> get(); |
|
19 | - } |
|
20 | - public function getall($id) { |
|
21 | - return $this -> where("menu", $id) -> orderBy("sort", "asc")->get(); |
|
22 | - } |
|
18 | + return $this -> where("parent", $id) -> get(); |
|
19 | + } |
|
20 | + public function getall($id) { |
|
21 | + return $this -> where("menu", $id) -> orderBy("sort", "asc")->get(); |
|
22 | + } |
|
23 | 23 | |
24 | - public static function getNextSortRoot($menu){ |
|
24 | + public static function getNextSortRoot($menu){ |
|
25 | 25 | return self::where('menu',$menu)->max('sort') + 1; |
26 | 26 | } |
27 | 27 |