Method | Description | |
---|---|---|
__construct ( |
Create a new repository instance. | |
delete ( integer $id ) | Delete a newsletter. | |
findAll ( ) : Illuminate\Database\Eloquent\Collection | Find all newsletter. | |
findAllPublishedWithPaginator ( integer $perPage = 10 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | Find all published newsletters. | |
findPublishedWithRelationById ( integer $id ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | Find published newsletter by id. | |
getNewletterLinkById ( integer $id ) : Illuminate\Database\Eloquent\Collection | Get all link of given ids' newsletter | |
store ( string $title ) : Illuminate\Database\Eloquent\Collection | Store a new newsletter. |
public __construct ( |
||
$newsletter |
public findAll ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
public findAllPublishedWithPaginator ( integer $perPage = 10 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | ||
$perPage | integer | |
return | Illuminate\Contracts\Pagination\LengthAwarePaginator |
public findPublishedWithRelationById ( integer $id ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | ||
$id | integer | |
return | Illuminate\Contracts\Pagination\LengthAwarePaginator |
public getNewletterLinkById ( integer $id ) : Illuminate\Database\Eloquent\Collection | ||
$id | integer | |
return | Illuminate\Database\Eloquent\Collection |