PHP Class Learner\Repositories\Eloquent\LinkRepository

Inheritance: extends AbstractRepository, implements Learner\Repositories\LinkRepositoryInterface
Mostrar archivo Open project: RryLee/learner.video

Public Methods

Method Description
__construct ( Link $link ) Create a new Link instance.
delete ( integer $id ) Delete a link.
findAllPaginated ( $perPage = 50 ) : Illuminate\Database\Eloquent\Collection | Link[] Get all link with paginator.
getSaveForm ( ) : SaveLinkFormService Get the link save form
store ( array $data ) : array Store a link.
update ( integer $id, array $data ) : array Update link.

Method Details

__construct() public method

Create a new Link instance.
public __construct ( Link $link )
$link Learner\Models\Link

delete() public method

Delete a link.
public delete ( integer $id )
$id integer

findAllPaginated() public method

Get all link with paginator.
public findAllPaginated ( $perPage = 50 ) : Illuminate\Database\Eloquent\Collection | Link[]
$perPage = 50
return Illuminate\Database\Eloquent\Collection | Learner\Models\Link[]

getSaveForm() public method

Get the link save form
public getSaveForm ( ) : SaveLinkFormService
return Learner\Services\Forms\SaveLinkFormService

store() public method

Store a link.
public store ( array $data ) : array
$data array
return array

update() public method

Update link.
public update ( integer $id, array $data ) : array
$id integer
$data array
return array