laravel where in
$users = DB::table('users')->whereIn('id', array(1, 2, 3))->get()
laravel where in
$users = DB::table('users')->whereIn('id', array(1, 2, 3))->get()
laravel where and blade
// NOTE: all project with open and processed that you have not submitted an offer yet.
// NOTE 1 (Controller): all projects with open and processed
$projects = Project::whereIn('status_id', [2,3])->get();
// NOTE 2 (Blade):
@if (count($project->projectOffers->where('teacher_id',auth()->user()->id)) == 0)
// Your code
@endif
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us