skip to Main Content

Php – Get value from an array and check for individual values

I have 3 dropdowns selects (each drop-down has values from 0 to 25): <select class="form-select" id="select1" name="select1"> <option selected value="0">label...</option> <option value="5">label...</option> <option value="10">label...</option> <option value="15">label...</option> <option value="20">label...</option> <option value="25">label...</option> </select> <select class="form-select" id="select2" name="select2"> <option selected value="0">label...</option> <option value="5">label...</option>…

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