Question:Which of the following is the correct way to request the destroy function of the resource controller? 

A 
<form action="blog/{{$blog->id}}" method="post"> 
         @csrf                  
         <input type="submit" value="Delete" />
</form>
 

B 
<form action="blog/{{$blog->id}}" method="post"> 
         @csrf 
         @method("DELETE")         
         <input type="submit" value="Delete" />
      </form>
 

C 
<form action="blog/{{$blog->id}}" method="post" > 
         @csrf                
         <input type="submit" value="Delete" />
      </form>
 

D 
<form action="blog/{{$blog->id}}" method="post" >      
         @csrf   
         @delete        
         <input type="submit" value="Delete" />
      </form>
 

+ Answer
+ Report
Total Preview: 796

Copyright © 2024. Powered by Intellect Software Ltd