Property | Type | Description | |
---|---|---|---|
$relations | array | The seires relate models. |
Method | Description | |
---|---|---|
__construct ( |
Create a new Series instance. | |
create ( array $data ) : array | Create a new Series. | |
findAllWithRelation ( ) : Illuminate\Database\Eloquent\Collection | |
Return all series and relation. | |
findAllWithRelationBySlug ( $slug ) : Illuminate\Database\Eloquent\Collection | |
Return series and relation by slug. (video is published.) | |
findAllWithRelationHavePublishedVideo ( ) : Illuminate\Database\Eloquent\Collection | |
Return series and relation. (video is published.) | |
findAllWithRelationHavePublishedVideoLimit ( $limit = 4 ) : Illuminate\Database\Eloquent\Collection | |
Limit series and relation. (video is published.) | |
findImageById ( integer $id ) : string | Find image path by id. | |
getCreateForm ( ) : Learner\Services\Forms\CreateSeriesFormService. | Get the user creation form service. | |
getUpdateForm ( ) : Learner\Services\Forms\UpdateSeriesFormService. | Get the user updation form service. | |
listIdAndTitle ( ) : Illuminate\Database\Eloquent\Collection | List all series' id and title for categories list. | |
update ( integer $id, array $data ) : array | Update Series by id. |
public __construct ( |
||
$series |
public findAllWithRelation ( ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |
public findAllWithRelationBySlug ( $slug ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |
public findAllWithRelationHavePublishedVideo ( ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |
public findAllWithRelationHavePublishedVideoLimit ( $limit = 4 ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |
public findImageById ( integer $id ) : string | ||
$id | integer | |
return | string |
public getCreateForm ( ) : Learner\Services\Forms\CreateSeriesFormService. | ||
return | Learner\Services\Forms\CreateSeriesFormService. |
public getUpdateForm ( ) : Learner\Services\Forms\UpdateSeriesFormService. | ||
return | Learner\Services\Forms\UpdateSeriesFormService. |
public listIdAndTitle ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
protected static array $relations | ||
return | array |