@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | /** |
| 17 | 17 | * A video belongs to one user. |
| 18 | 18 | * |
| 19 | - * @return Object |
|
| 19 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 20 | 20 | */ |
| 21 | 21 | public function user() |
| 22 | 22 | { |
@@ -27,7 +27,6 @@ discard block |
||
| 27 | 27 | * Get a list of categories associated with |
| 28 | 28 | * this video |
| 29 | 29 | * |
| 30 | - * @param [type] $value [description] |
|
| 31 | 30 | * @return array Associated categories |
| 32 | 31 | */ |
| 33 | 32 | public function getCategoryListAttribute() |
@@ -48,7 +47,7 @@ discard block |
||
| 48 | 47 | /** |
| 49 | 48 | * A video can have many comments. |
| 50 | 49 | * |
| 51 | - * @return Object |
|
| 50 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
| 52 | 51 | */ |
| 53 | 52 | public function comments() |
| 54 | 53 | { |
@@ -58,7 +57,7 @@ discard block |
||
| 58 | 57 | /** |
| 59 | 58 | * A video can have many favorites |
| 60 | 59 | * |
| 61 | - * @return Object |
|
| 60 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
| 62 | 61 | */ |
| 63 | 62 | public function favorites() |
| 64 | 63 | { |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Video extends Model |
| 8 | 8 | { |
| 9 | - protected $fillable =[ |
|
| 9 | + protected $fillable = [ |
|
| 10 | 10 | 'title', |
| 11 | 11 | 'url', |
| 12 | 12 | 'description', |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function map(Router $router) |
| 39 | 39 | { |
| 40 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
| 40 | + $router->group(['namespace' => $this->namespace], function($router) { |
|
| 41 | 41 | require app_path('Http/routes.php'); |
| 42 | 42 | }); |
| 43 | 43 | } |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | | |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | -Route::group(['middleware' => 'web'], function () { |
|
| 24 | +Route::group(['middleware' => 'web'], function() { |
|
| 25 | 25 | |
| 26 | 26 | Route::auth(); |
| 27 | 27 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Authentication routes |
| 38 | 38 | */ |
| 39 | - Route::group(['prefix' => '/auth/{provider}'], function () { |
|
| 39 | + Route::group(['prefix' => '/auth/{provider}'], function() { |
|
| 40 | 40 | /** |
| 41 | 41 | * redirect to social auth login using socialite |
| 42 | 42 | */ |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | /** |
| 52 | 52 | * User profile routes |
| 53 | 53 | */ |
| 54 | - Route::group(['prefix' => 'profile', 'middleware' => 'auth'], function () { |
|
| 54 | + Route::group(['prefix' => 'profile', 'middleware' => 'auth'], function() { |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Get authenitcated user's profile page |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * User dashboard routes |
| 83 | 83 | */ |
| 84 | - Route::group(['prefix' => 'dashboard', 'middleware' => 'auth'], function () { |
|
| 84 | + Route::group(['prefix' => 'dashboard', 'middleware' => 'auth'], function() { |
|
| 85 | 85 | /** |
| 86 | 86 | * Show the new video page |
| 87 | 87 | */ |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace LearnParty\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | -use LearnParty\Http\Requests; |
|
| 7 | 6 | use LearnParty\User; |
| 8 | 7 | use Auth; |
| 9 | 8 | |