app/Repositories/BlogRepository.php
/**
     * Retrieve all the categories.
     *
     * @param bool $category [ default = true ]  Use for switch list from active and trashed
     * @return \Illuminate\Database\Eloquent\Builder|static
     */
Retrieve all the categories.
@param bool $category [ default = true ]  Use for switch list from active and trashed
@return \Illuminate\Database\Eloquent\Builder|static
Retrieve all the categories . @param bool $category [ default = true ] Use for switch list from active and trashed @return \ Illuminate \ Database \ Eloquent \ Builder|static
public function listCategories()
    {
        $categories = $this->category->all();
        return $categories;
    }
public function listCategories ( ) { $ categories = $ this -> category -> all ( ) ; return $ categories ; }
Retrieve all the categories.
Retrieve all the categories .
// $categories = $categories->paginate(10);