use named route and asset in controller

Posted 9 months ago by mac03733

i am trying to get the image and also set a named route in my controller

     foreach($users as $user){
             $output .= ' 
                 <td >'.$user->id.'</td>
                <img src="{{ asset("storage/images/avatar5.png") }}" > //here ?? <-------------
                <a href="{{route("admin.viewUser",["id"=>'. $user->id .'])}}" class="btn  d-inline">                 
                </a> //here ?? <-------------

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

Reply to

Use Markdown with GitHub-flavored code blocks.