App\Repositories\CategoryRepository::all PHP Method

all() public method

Get all Categories.
public all ( ) : mixed
return 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