i try to get results from table with multiple where and/or clauses. But I am not receiving the good result!
$queries = journal::where(function($query)
{
$term =Input::get('text');
$query->where('titre', 'like', '%'.$term.'%')
->where('etat','!=','9')
->where('type', 0)
->orWhere('type', 1);
})->take(10)->get();