App\Repositories\CategoryRepository::all PHP Метод

all() публичный Метод

Get all Categories.
public all ( ) : mixed
Результат mixed
    public function all()
    {
        return $this->model->orderBy('hot', 'desc')->get();
    }

Usage Example

Пример #1
0
 /**
  * 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