@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Construct. |
20 | 20 | * |
21 | - * @param Larafolio\Http\Content\ContentImages $contentImages Service class for content images. |
|
21 | + * @param ContentImages $contentImages Service class for content images. |
|
22 | 22 | */ |
23 | 23 | public function __construct(ContentImages $contentImages) |
24 | 24 | { |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * Show images for project. |
32 | 32 | * |
33 | 33 | * @param \Illuminate\Http\Request $request Request from user. |
34 | - * @param Larafolio\Models\Page $page Page to show. |
|
34 | + * @param Page $page Page to show. |
|
35 | 35 | * |
36 | 36 | * @return \Illuminate\Http\Response |
37 | 37 | */ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * Add a new page image. |
45 | 45 | * |
46 | 46 | * @param \Illuminate\Http\Request $request Form request. |
47 | - * @param Larafolio\Models\Page $page The page to add the image too. |
|
47 | + * @param Page $page The page to add the image too. |
|
48 | 48 | */ |
49 | 49 | public function store(Request $request, Page $page) |
50 | 50 | { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Construct. |
20 | 20 | * |
21 | - * @param Larafolio\Http\Content\ContentImages $contentImages Service class for content images. |
|
21 | + * @param ContentImages $contentImages Service class for content images. |
|
22 | 22 | */ |
23 | 23 | public function __construct(ContentImages $contentImages) |
24 | 24 | { |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * Show images for project. |
32 | 32 | * |
33 | 33 | * @param \Illuminate\Http\Request $request Request from user. |
34 | - * @param Larafolio\Models\Project $project Project to show. |
|
34 | + * @param Project $project Project to show. |
|
35 | 35 | * |
36 | 36 | * @return \Illuminate\Http\Response |
37 | 37 | */ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * Add a new project image to the portfolio. |
45 | 45 | * |
46 | 46 | * @param \Illuminate\Http\Request $request Form request. |
47 | - * @param Larafolio\Models\Project $project The project to add the image too. |
|
47 | + * @param Project $project The project to add the image too. |
|
48 | 48 | */ |
49 | 49 | public function store(Request $request, Project $project) |
50 | 50 | { |
@@ -14,10 +14,10 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Add a blocks and links to model. |
16 | 16 | * |
17 | - * @param Larafolio\Models\HasContent $model Model to add extras to. |
|
17 | + * @param HasContent $model Model to add extras to. |
|
18 | 18 | * @param array $data Array of posted user data. |
19 | 19 | * |
20 | - * @return Larafolio\Models\HasContent |
|
20 | + * @return HasContent |
|
21 | 21 | */ |
22 | 22 | protected function addModelExtras(HasContent $model, array $data) |
23 | 23 | { |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * Update a HasContent model and its children. |
37 | 37 | * |
38 | - * @param Larafolio\Models\HasContent $model Model to update. |
|
38 | + * @param HasContent $model Model to update. |
|
39 | 39 | * @param array $data Array of posted user data. |
40 | 40 | * |
41 | - * @return Larafolio\Models\HasContent |
|
41 | + * @return HasContent |
|
42 | 42 | */ |
43 | 43 | protected function updateModel(HasContent $model, array $data) |
44 | 44 | { |
@@ -54,9 +54,9 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * Permanently delete a model. |
56 | 56 | * |
57 | - * @param Larafolio\Models\HasContent $model Model to delete. |
|
57 | + * @param HasContent $model Model to delete. |
|
58 | 58 | * |
59 | - * @return bool |
|
59 | + * @return boolean|null |
|
60 | 60 | */ |
61 | 61 | protected function purgeModel(HasContent $model) |
62 | 62 | { |
@@ -89,10 +89,10 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * Add a text block to a model. |
91 | 91 | * |
92 | - * @param Larafolio\Models\HasContent $model Model to add text block to. |
|
92 | + * @param HasContent $model Model to add text block to. |
|
93 | 93 | * @param array $blockData Array of text block data. |
94 | 94 | * |
95 | - * @return Larafolio\Models\HasContent |
|
95 | + * @return Model |
|
96 | 96 | */ |
97 | 97 | public function addBlockToModel(HasContent $model, array $blockData) |
98 | 98 | { |
@@ -102,10 +102,10 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * Update a text block. |
104 | 104 | * |
105 | - * @param Larafolio\Models\TextBlock $textBlock Text block to update. |
|
105 | + * @param TextBlock $textBlock Text block to update. |
|
106 | 106 | * @param array $blockData Array of text block data. |
107 | 107 | * |
108 | - * @return Larafolio\Models\TextBlock |
|
108 | + * @return TextBlock |
|
109 | 109 | */ |
110 | 110 | public function updateTextBlock(TextBlock $textBlock, array $blockData) |
111 | 111 | { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | /** |
118 | 118 | * Update model text blocks by adding new ones and updating existing ones. |
119 | 119 | * |
120 | - * @param Larafolio\Models\HasContent $model Model that blocks belong to. |
|
120 | + * @param HasContent $model Model that blocks belong to. |
|
121 | 121 | * @param array $data Array of model information. |
122 | 122 | */ |
123 | 123 | public function updateAllTextBlocks(HasContent $model, array $data) |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Remove a text block from a model. |
140 | 140 | * |
141 | - * @param Larafolio\Models\TextBlock $textBlock The text block to delete. |
|
141 | + * @param TextBlock $textBlock The text block to delete. |
|
142 | 142 | * |
143 | 143 | * @return bool|null |
144 | 144 | */ |
@@ -150,10 +150,10 @@ discard block |
||
150 | 150 | /** |
151 | 151 | * Add image to a model. |
152 | 152 | * |
153 | - * @param Larafolio\Models\HasContent $model Model to add image to. |
|
153 | + * @param HasContent $model Model to add image to. |
|
154 | 154 | * @param array $imageData Array of image infomation. |
155 | 155 | * |
156 | - * @return Larafolio\Models\HasContent |
|
156 | + * @return Model |
|
157 | 157 | */ |
158 | 158 | public function addImageToModel(HasContent $model, array $imageData) |
159 | 159 | { |
@@ -163,10 +163,10 @@ discard block |
||
163 | 163 | /** |
164 | 164 | * Update image name and caption. |
165 | 165 | * |
166 | - * @param Larafolio\Models\Image $image Image to update. |
|
166 | + * @param Image $image Image to update. |
|
167 | 167 | * @param array $imageData Array of inmage information. |
168 | 168 | * |
169 | - * @return Larafolio\Models\Image |
|
169 | + * @return Image |
|
170 | 170 | */ |
171 | 171 | public function updateImageInfo(Image $image, array $imageData) |
172 | 172 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | /** |
179 | 179 | * Remove image from storage and delete database info if path is unique. |
180 | 180 | * |
181 | - * @param Larafolio\Models\Image $image Image to remove. |
|
181 | + * @param Image $image Image to remove. |
|
182 | 182 | * |
183 | 183 | * @return bool|null |
184 | 184 | */ |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | /** |
197 | 197 | * Add a link to a model. |
198 | 198 | * |
199 | - * @param Larafolio\Models\HasContent $model Model to add link to. |
|
199 | + * @param HasContent $model Model to add link to. |
|
200 | 200 | * @param array $linkData Array of link info. |
201 | 201 | */ |
202 | 202 | public function addLinkToModel(HasContent $model, array $linkData) |
@@ -207,10 +207,10 @@ discard block |
||
207 | 207 | /** |
208 | 208 | * Update a link. |
209 | 209 | * |
210 | - * @param Larafolio\Models\Link $link Link to update. |
|
210 | + * @param Link $link Link to update. |
|
211 | 211 | * @param array $linkData Array of link data. |
212 | 212 | * |
213 | - * @return Larafolio\Models\Link |
|
213 | + * @return Link |
|
214 | 214 | */ |
215 | 215 | public function updateLink(Link $link, array $linkData) |
216 | 216 | { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Update model links by adding new ones and updating existing ones. |
224 | 224 | * |
225 | - * @param Larafolio\Models\HasContent $model Model that links belong to. |
|
225 | + * @param HasContent $model Model that links belong to. |
|
226 | 226 | * @param array $data Array of model information. |
227 | 227 | */ |
228 | 228 | public function updateAllLinks(HasContent $model, array $data) |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | /** |
244 | 244 | * Remove link from a model. |
245 | 245 | * |
246 | - * @param Larafolio\Models\Link $link Link to remove. |
|
246 | + * @param Link $link Link to remove. |
|
247 | 247 | * |
248 | 248 | * @return bool|null |
249 | 249 | */ |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | /** |
256 | 256 | * Update content associated with model. |
257 | 257 | * |
258 | - * @param Larafolio\Models\HasContent $model Model associated with content. |
|
258 | + * @param HasContent $model Model associated with content. |
|
259 | 259 | * @param string $type Type of model. |
260 | 260 | * @param array $data user posted data. |
261 | 261 | * @param callable $updateCallback Callback to update the content. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -Route::group(['middleware' => ['web', 'admin']], function () { |
|
3 | +Route::group(['middleware' => ['web', 'admin']], function() { |
|
4 | 4 | Route::get('/manager', 'Larafolio\Http\Controllers\DashboardController@index')->name('dashboard'); |
5 | 5 | |
6 | 6 | Route::patch('/manager', 'Larafolio\Http\Controllers\PortfolioController@update')->name('update-portfolio'); |
@@ -23,6 +23,6 @@ |
||
23 | 23 | $pages = $user ? Page::all() : collect([]); |
24 | 24 | |
25 | 25 | $view->with('navProjects', $projects) |
26 | - ->with('navPages', $pages); |
|
26 | + ->with('navPages', $pages); |
|
27 | 27 | } |
28 | 28 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | factory(Page::class) |
23 | 23 | ->create(['name' => $name]) |
24 | - ->each(function (Page $project) { |
|
24 | + ->each(function(Page $project) { |
|
25 | 25 | $project->blocks()->save(factory(TextBlock::class)->make()); |
26 | 26 | |
27 | 27 | $project->links()->save(factory(Link::class)->make()); |