@@ -45,15 +45,15 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @var array |
47 | 47 | */ |
48 | - protected $fillable = ['name', 'color', 'meta_title', 'meta_description', |
|
49 | - 'meta_keywords', 'text', 'url', 'image_id',]; |
|
48 | + protected $fillable = [ 'name', 'color', 'meta_title', 'meta_description', |
|
49 | + 'meta_keywords', 'text', 'url', 'image_id', ]; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Columns to exclude from index |
53 | 53 | * |
54 | 54 | * @var array |
55 | 55 | */ |
56 | - protected $excludedFromIndex = ['image']; |
|
56 | + protected $excludedFromIndex = [ 'image' ]; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Fields to search in fulltext mode |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * |
94 | 94 | * @return object |
95 | 95 | */ |
96 | - public function images(){ |
|
96 | + public function images() { |
|
97 | 97 | |
98 | 98 | return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', |
99 | 99 | 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * |
107 | 107 | * @return object |
108 | 108 | */ |
109 | - public function articles(){ |
|
109 | + public function articles() { |
|
110 | 110 | |
111 | 111 | return $this->belongsToMany('App\Article', 'article_articlecategory', 'articlecategory_id', 'article_id'); |
112 | 112 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @param query $query |
118 | 118 | * @return query |
119 | 119 | */ |
120 | - public function scopeRelationships($query){ |
|
120 | + public function scopeRelationships($query) { |
|
121 | 121 | |
122 | 122 | return $query->with('images', 'images.imagecategories', 'articles'); |
123 | 123 | } |
@@ -52,22 +52,22 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @var array |
54 | 54 | */ |
55 | - protected $fillable = ['name', 'email', 'password', 'age', 'blacklisted', 'ip', 'activation_code', 'active', |
|
56 | - 'fname', 'sname', 'bno', 'city', 'citypart', 'street', 'hno', 'zip', 'registration_data', 'phone']; |
|
55 | + protected $fillable = [ 'name', 'email', 'password', 'age', 'blacklisted', 'ip', 'activation_code', 'active', |
|
56 | + 'fname', 'sname', 'bno', 'city', 'citypart', 'street', 'hno', 'zip', 'registration_data', 'phone' ]; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * The attributes excluded from the model's JSON form. |
60 | 60 | * |
61 | 61 | * @var array |
62 | 62 | */ |
63 | - protected $hidden = ['password', 'remember_token']; |
|
63 | + protected $hidden = [ 'password', 'remember_token' ]; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Columns to exclude from index |
67 | 67 | * |
68 | 68 | * @var array |
69 | 69 | */ |
70 | - protected $excludedFromIndex = ['password']; |
|
70 | + protected $excludedFromIndex = [ 'password' ]; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Fields to search in fulltext mode |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @return object |
104 | 104 | */ |
105 | - public function articles(){ |
|
105 | + public function articles() { |
|
106 | 106 | |
107 | 107 | return $this->hasMany('App\Article', 'user_id'); |
108 | 108 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * |
113 | 113 | * @return object |
114 | 114 | */ |
115 | - public function usergroups(){ |
|
115 | + public function usergroups() { |
|
116 | 116 | |
117 | 117 | return $this->belongsTo('App\Usergroup', 'usergroup_id'); |
118 | 118 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * @param query $query |
124 | 124 | * @return query |
125 | 125 | */ |
126 | - public function scopeRelationships($query){ |
|
126 | + public function scopeRelationships($query) { |
|
127 | 127 | |
128 | 128 | return $query->with('usergroups'); |
129 | 129 | } |
@@ -46,15 +46,15 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @var array |
48 | 48 | */ |
49 | - protected $fillable = ['name', 'caption', 'text', 'link_url', |
|
50 | - 'link_title', 'image_id', 'position']; |
|
49 | + protected $fillable = [ 'name', 'caption', 'text', 'link_url', |
|
50 | + 'link_title', 'image_id', 'position' ]; |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Columns to exclude from index |
54 | 54 | * |
55 | 55 | * @var array |
56 | 56 | */ |
57 | - protected $excludedFromIndex = []; |
|
57 | + protected $excludedFromIndex = [ ]; |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Fields to search in fulltext mode |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * |
91 | 91 | * @return object |
92 | 92 | */ |
93 | - public function images(){ |
|
93 | + public function images() { |
|
94 | 94 | |
95 | 95 | return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', |
96 | 96 | 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * |
104 | 104 | * @return object |
105 | 105 | */ |
106 | - public function advertlocations(){ |
|
106 | + public function advertlocations() { |
|
107 | 107 | |
108 | 108 | return $this->belongsToMany('App\AdvertLocation', 'advert_advertlocation', 'advertlocation_id', 'advert_id'); |
109 | 109 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * @param type $query |
115 | 115 | * @return object |
116 | 116 | */ |
117 | - public function scopeRelationships($query){ |
|
117 | + public function scopeRelationships($query) { |
|
118 | 118 | |
119 | 119 | return $query->with('images', 'images.imagecategories', 'advertlocations'); |
120 | 120 | } |
@@ -43,14 +43,14 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @var array |
45 | 45 | */ |
46 | - protected $fillable = ['name', 'description', 'class']; |
|
46 | + protected $fillable = [ 'name', 'description', 'class' ]; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Columns to exclude from index |
50 | 50 | * |
51 | 51 | * @var array |
52 | 52 | */ |
53 | - protected $excludedFromIndex = []; |
|
53 | + protected $excludedFromIndex = [ ]; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * Fields to search in fulltext mode |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * |
91 | 91 | * @return object |
92 | 92 | */ |
93 | - public function pages(){ |
|
93 | + public function pages() { |
|
94 | 94 | |
95 | 95 | return $this->belongsToMany('App\Page', 'page_pagecategory', 'page_id', 'pagecategory_id'); |
96 | 96 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @param query $query |
102 | 102 | * @return query |
103 | 103 | */ |
104 | - public function scopeRelationships($query){ |
|
104 | + public function scopeRelationships($query) { |
|
105 | 105 | |
106 | 106 | return $query->with('pages'); |
107 | 107 | } |
@@ -46,15 +46,15 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @var array |
48 | 48 | */ |
49 | - protected $fillable = ['name', 'headline', 'text', 'email', |
|
50 | - 'url', 'approved', 'commentstatus_id', 'page_id', 'article_id']; |
|
49 | + protected $fillable = [ 'name', 'headline', 'text', 'email', |
|
50 | + 'url', 'approved', 'commentstatus_id', 'page_id', 'article_id' ]; |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Columns to exclude from index |
54 | 54 | * |
55 | 55 | * @var array |
56 | 56 | */ |
57 | - protected $excludedFromIndex = []; |
|
57 | + protected $excludedFromIndex = [ ]; |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Fields to search in fulltext mode |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @return object |
97 | 97 | */ |
98 | - public function commentstatuses(){ |
|
98 | + public function commentstatuses() { |
|
99 | 99 | |
100 | 100 | return $this->belongsTo('App\CommentStatus', 'commentstatus_id'); |
101 | 101 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * |
106 | 106 | * @return object |
107 | 107 | */ |
108 | - public function articles(){ |
|
108 | + public function articles() { |
|
109 | 109 | |
110 | 110 | return $this->belongsTo('App\Article', 'article_id'); |
111 | 111 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * |
116 | 116 | * @return object |
117 | 117 | */ |
118 | - public function pages(){ |
|
118 | + public function pages() { |
|
119 | 119 | |
120 | 120 | return $this->belongsTo('App\Page', 'page_id'); |
121 | 121 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * @param query $query |
127 | 127 | * @return query |
128 | 128 | */ |
129 | - public function scopeRelationships($query){ |
|
129 | + public function scopeRelationships($query) { |
|
130 | 130 | |
131 | 131 | return $query->with('articles', 'pages', 'commentstatuses'); |
132 | 132 | } |
@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @var array |
48 | 48 | */ |
49 | - protected $fillable = ['name', 'description', 'position', 'image_id']; |
|
49 | + protected $fillable = [ 'name', 'description', 'position', 'image_id' ]; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Columns to exclude from index |
53 | 53 | * |
54 | 54 | * @var array |
55 | 55 | */ |
56 | - protected $excludedFromIndex = ['image']; |
|
56 | + protected $excludedFromIndex = [ 'image' ]; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Fields to search in fulltext mode |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return object |
91 | 91 | */ |
92 | - public function images(){ |
|
92 | + public function images() { |
|
93 | 93 | |
94 | 94 | return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', |
95 | 95 | 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @param query $query |
104 | 104 | * @return query |
105 | 105 | */ |
106 | - public function scopeRelationships($query){ |
|
106 | + public function scopeRelationships($query) { |
|
107 | 107 | |
108 | 108 | return $query->with('images', 'images.imagecategories'); |
109 | 109 | } |
@@ -44,14 +44,14 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @var array |
46 | 46 | */ |
47 | - protected $fillable = ['name', 'description', 'caption', 'text', 'position', 'image_id', 'slider_id']; |
|
47 | + protected $fillable = [ 'name', 'description', 'caption', 'text', 'position', 'image_id', 'slider_id' ]; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Columns to exclude from index |
51 | 51 | * |
52 | 52 | * @var array |
53 | 53 | */ |
54 | - protected $excludedFromIndex = ['image']; |
|
54 | + protected $excludedFromIndex = [ 'image' ]; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Fields to search in fulltext mode |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @return object |
89 | 89 | */ |
90 | - public function sliders(){ |
|
90 | + public function sliders() { |
|
91 | 91 | |
92 | 92 | return $this->belongsTo('App\Slider', 'slider_id'); |
93 | 93 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * |
98 | 98 | * @return object |
99 | 99 | */ |
100 | - public function images(){ |
|
100 | + public function images() { |
|
101 | 101 | |
102 | 102 | return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', |
103 | 103 | 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param query $query |
112 | 112 | * @return query |
113 | 113 | */ |
114 | - public function scopeRelationships($query){ |
|
114 | + public function scopeRelationships($query) { |
|
115 | 115 | |
116 | 116 | return $query->with('images', 'images.imagecategories', 'sliders'); |
117 | 117 | } |
@@ -44,14 +44,14 @@ |
||
44 | 44 | * |
45 | 45 | * @var array |
46 | 46 | */ |
47 | - protected $fillable = ['name', 'language', 'description']; |
|
47 | + protected $fillable = [ 'name', 'language', 'description' ]; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Columns to exclude from index |
51 | 51 | * |
52 | 52 | * @var array |
53 | 53 | */ |
54 | - protected $excludedFromIndex = []; |
|
54 | + protected $excludedFromIndex = [ ]; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Fields to search in fulltext mode |
@@ -47,21 +47,21 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @var array |
49 | 49 | */ |
50 | - protected $fillable = ['name', 'description', 'alt', 'url']; |
|
50 | + protected $fillable = [ 'name', 'description', 'alt', 'url' ]; |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Columns to exclude from index |
54 | 54 | * |
55 | 55 | * @var array |
56 | 56 | */ |
57 | - protected $excludedFromIndex = []; |
|
57 | + protected $excludedFromIndex = [ ]; |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Hidden from custom find |
61 | 61 | * |
62 | 62 | * @var arrat |
63 | 63 | */ |
64 | - protected $excludedFromFind = []; |
|
64 | + protected $excludedFromFind = [ ]; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * Fields to search in fulltext mode |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * |
107 | 107 | * @return object |
108 | 108 | */ |
109 | - public function imagecategories(){ |
|
109 | + public function imagecategories() { |
|
110 | 110 | |
111 | 111 | return $this->belongsTo('App\ImageCategory', 'imagecategory_id'); |
112 | 112 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @return object |
118 | 118 | */ |
119 | - public function slides(){ |
|
119 | + public function slides() { |
|
120 | 120 | |
121 | 121 | return $this->hasMany('App\Slide', 'image_id'); |
122 | 122 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @return object |
128 | 128 | */ |
129 | - public function articlecategories(){ |
|
129 | + public function articlecategories() { |
|
130 | 130 | |
131 | 131 | return $this->hasMany('App\ArticleCategory', 'image_id'); |
132 | 132 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * |
137 | 137 | * @return object |
138 | 138 | */ |
139 | - public function pages(){ |
|
139 | + public function pages() { |
|
140 | 140 | |
141 | 141 | return $this->hasMany('App\Page', 'image_id'); |
142 | 142 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * @param query $query |
148 | 148 | * @return query |
149 | 149 | */ |
150 | - public function scopeRelationships($query){ |
|
150 | + public function scopeRelationships($query) { |
|
151 | 151 | |
152 | 152 | return $query->with('imagecategories'); |
153 | 153 | } |
@@ -157,8 +157,8 @@ discard block |
||
157 | 157 | * |
158 | 158 | * @param array $array |
159 | 159 | */ |
160 | - public function hide($array = []){ |
|
160 | + public function hide($array = [ ]) { |
|
161 | 161 | |
162 | - $this->hidden = ['image']; |
|
162 | + $this->hidden = [ 'image' ]; |
|
163 | 163 | } |
164 | 164 | } |