Sarishabari Karigori Proshikkhon Institute

A query is made in the Category model using the with('subCategory') method. This loads the subcategory relationships for each category. This way, all categories along with their respective subcategories are obtained. The results are stored in the $categories variable. By usin

Inclusion

  • A query is made in the Category model using the with('subCategory') method. This loads the subcategory relationships for each category. This way, all categories along with their respective subcategories are obtained. The results are stored in the $categories variable.
  • By usin

Exclusion

  • A query is made in the Category model using the with('subCategory') method. This loads the subcategory relationships for each category. This way, all categories along with their respective subcategories are obtained. The results are stored in the $categories variable.
  • By usin