PaulCatalin97
4 months ago

How to show image in view when upload?

Posted 4 months ago by PaulCatalin97

this is my session

 $employer->save();

        if($employer){
            return redirect()->route('imageuploademployer')->withSuccess('S-a incarcat cu success!');
        }else{
            return redirect()->back()->withDanger('Nu s-a incarcat! A aparut o eroare.');

and here i want to display image from directory

 @if(session()->has('success'))
                    <div class="alert alert-success">
                        {{ session('success')}}
                    </div>
                    <div class="img2">
                        <img src="{{$employerimage->image}}">
                    </div>
                @endif

Please sign in or create an account to participate in this conversation.