skip to Main Content

? 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

Docker conditional processing

I cannot get conditional Dockerfile to work. My command is: docker build -t test --progress=plain --build-arg APP_BRANCH=main. FROM alpine:latest AS base ARG APP_BRANCH I've tried using simple if...else: RUN if [ "${APP_BRANCH}" == "main" ]; then echo "MAIN app"; elif…

VIEW QUESTION
Back To Top
Search