PHP Class Yab\Quarx\Repositories\FAQRepository

Mostrar archivo Open project: YABhq/Quarx Class Usage Examples

Public Methods

Method Description
all ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all FAQS.
findFaqById ( integer $id ) : Collection | null | static | FAQ Find FAQ by given id.
paginated ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all paginated FAQS.
published ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all published Faqs.
search ( string $input ) : FAQ Search FAQ.
store ( array $input ) : FAQ Stores FAQ into database.
update ( FAQ $fAQ, array $input ) : FAQ Updates FAQ into database.

Method Details

all() public method

Returns all FAQS.
public all ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

findFaqById() public method

Find FAQ by given id.
public findFaqById ( integer $id ) : Collection | null | static | FAQ
$id integer
return Illuminate\Support\Collection | null | static | Yab\Quarx\Models\FAQ

paginated() public method

Returns all paginated FAQS.
public paginated ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

published() public method

Returns all published Faqs.
public published ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

store() public method

Stores FAQ into database.
public store ( array $input ) : FAQ
$input array
return Yab\Quarx\Models\FAQ

update() public method

Updates FAQ into database.
public update ( FAQ $fAQ, array $input ) : FAQ
$fAQ Yab\Quarx\Models\FAQ
$input array
return Yab\Quarx\Models\FAQ