skip to Main Content

Why aren’t the correct records populating in Laravel using SQL query?

I am trying to filter data with search terms. But its not populate data. Any one can help me with this? Here is my code: $query = Lesson::select('lesson.*') ->join('lesson_language', 'lesson_language.lesson_id', 'lesson.id') ->leftJoin('content', 'content.lesson_id', 'lesson.id') ->leftJoin('lesson_role', 'lesson_role.lesson_id', 'lesson.id') ->leftJoin('lesson_brand', 'lesson_brand.lesson_id', 'lesson.id')…

VIEW QUESTION

? Can IF condition be applied to email_verified_at field in Laravel Blade?

Controller $userAlbums =album::select('album_id')->where('created_by','=',Auth::id())->count(); $userData = user::where('id','=',Auth::id())->first(); return view('welcome', compact('userData','userAlbums')); Blade @if($userData->email_varified_at == null) @include('include.email-verification') @endif if i try to display $userData->email_varified_at variable it works ,but the IF condition also run every time even if email_varified_at field is not null. is…

VIEW QUESTION
Back To Top
Search