1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. Question: What is the correct syntax of displaying variables using the blade engine on the view page?

    A
    {$abc}

    B
    {{$abc}}

    C
    {{-- $abc --}}

    D
    [{$abc}]

    Note: Not available
    1. Report
  7. Question: What is the correct syntax of setting the default value if data do not exist in a valuable in terms of laravel blade template engine?

    A
    {{ $name or "California"}}

    B
    {{ $name = "California"}}

    C
    {{ $name=>"California"}}

    D
    {{ $name || "California"}}

    Note: Not available
    1. Report
  8. Question: Which of the following is laravel debug helper function?

    A
    dd()

    B
    debug()

    C
    alert()

    D
    dump()

    Note: Not available
    1. Report
  9. Question: What is the log file location after executing \Log::debug("hello") in laravel?

    A
    store/logs/laravel.log

    B
    storeage/logs/laravel.log

    C
    storeage/logs/log.txt

    D
    storeage/log/debug.log

    Note: Not available
    1. Report
  10. Question: Which of the following is not correct laravel debug-level function at the Log class?

    A
    Log::info()

    B
    Log::warning()

    C
    Log::error()

    D
    Log::critical()

    E
    Log:debug()

    F
    Log::dump()

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