dimanche 10 novembre 2019

Laravel WHERE NOT IN (PLEASE HELP)

Hi, I want to filter my Parent Category, let's say my code now is :abc, description is :abc , and I wish that my parent category do not have "abc" selection inside, how should I code ?

IMAGE

public function edit($id)
{
  $category = Category::find($id);
  $parents = Category::all();;
  return  view('category.edit')-> with('parents', $parents)-> with('category', $category)->with('id', $id);
}

I'm an internship student and new to laravel, my supervisor call me to use WHERE NOT IN method, but I really do not know what to do. Please Help



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire