1. Question: Which of the following is/are valid view calling syntax?

    A
    view("welcome")

    B
    return view("home.welcome")

    C
    return view("welcome")

    D
    return view("home.welcome",["data"=>$data])

    Note: Not available
    1. Report
  2. Question: which of the following are the resource controller's function group?

    A
    index, create, store, show, edit, update, destroy

    B
    index, create, store, show, edit, delete

    C
    index, create, store, show, update, delete

    D
    index, create, insert, show, edit, update, delete

    Note: Not available
    1. Report
  3. Question: Which of the following http method is correct for requesting the update function of the resource controller?

    A
    GET

    B
    PUT

    C
    POST

    D
    DELETE

    Note: Not available
    1. Report
  4. Question: Which of the following http method is correct for requesting the create function of the resource controller?

    A
    GET

    B
    POST

    C
    PUT

    D
    CREATE

    Note: Not available
    1. Report
  5. Question: Which of the following http method is correct for requesting the destroy function of the resource controller?

    A
    GET

    B
    POST

    C
    DELETE

    D
    PUT

    Note: Not available
    1. Report
  6. Question: Which of the following routing is correct for requesting the update function of the resource controller?

    A
    {{route('blog.update')}}

    B
    {{route('update')}}

    C
    {{route('blog.update',$blog[0]->id)}}

    D
    {{route('blog/update',$blog[0]->id)}}

    Note: Not available
    1. Report
  7. 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>

    Note: Not available
    1. Report
  8. Question: Which of the following is the correct way to request the update function of the resource controller?

    A
    <form action="{{route('blog.update',$blog[0]->id)}}" method="post">
      @csrf 
      @method('PUT')
      <textarea  name="txtTitle" > 
       {{$blog[0]->title}}
      </textarea> 
      <input type="submit" value="Update" />
    </form>

    B
    <form action="{{route('blog.update',$blog[0]->id)}}" method="post">
      @csrf 
      @method('UPDATE')
      <textarea  name="txtTitle" > 
       {{$blog[0]->title}}
      </textarea> 
      <input type="submit" value="Update" />
    </form>

    C
    <form action="{{route('blog.update',$blog[0]->id)}}" method="post">
      @csrf 
      <textarea  name="txtTitle" > 
       {{$blog[0]->title}}
      </textarea> 
      <input type="submit" value="Update" />
    </form>

    D
    <form action="{{route('blog.update',$blog[0]->id)}}" method="post">
      @csrf 
      @method('POST')
      <textarea  name="txtTitle" > 
       {{$blog[0]->title}}
      </textarea> 
      <input type="submit" value="Update" />
    </form>

    Note: Not available
    1. Report
  9. Question: Which of the following is the correct way to request the store function of the resource controller?

    A
    <form action="{{route('blog.store')}}" method="post">
    @csrf
    @method("GET")
     <input type="text" name="txtName" />
     <input type="submit" value="Create" name="btnSubmit" />
    </form>

    B
    <form action="{{route('blog.store')}}" method="post">
    @csrf
    @method("CREATE")
     <input type="text" name="txtName" />
     <input type="submit" value="Create" name="btnSubmit" />
    </form>

    C
    <form action="{{route('blog.store')}}" method="post">
    @csrf
     <input type="text" name="txtName" />
     <input type="submit" value="Create" name="btnSubmit" />
    </form>

    D
    <form action="{{route('blog.store')}}" method="post">
     @method("POST")
     <input type="text" name="txtName" />
     <input type="submit" value="Create" name="btnSubmit" />
    </form>

    Note: Not available
    1. Report
  10. Question: Which of the following artisan command is correct for displaying all available application routes?

    A
    php artisan route

    B
    php artisan list:route

    C
    php artisan route:list

    D
    php artisan route list

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd