app\repositories\CategoryRepository::all PHP Méthode

all() public méthode

Get all Categories.
public all ( ) : mixed
Résultat mixed
    public function all()
    {
        return $this->model->orderBy('hot', 'desc')->get();
    }

Usage Example

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $categories = $this->categoryRepository->all();
     return view('categories.index', compact('categories'));
 }
All Usage Examples Of app\repositories\CategoryRepository::all