Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Laravel Online Test

Topics Covered

  • Routing
  • View Rendering
  • Validation
  • Htaccess
  • Mailing
  • Pagination
  • Query Builder
  • Blade Templates
  • Exception Handling
  • Resource Controller

Useful for hiring

  • Laravel Programmer
  • Laravel Developer
  • Senior PHP Developer – Laravel

Start hiring job-fit candidates using this assessment

GET A DEMO

"We are impressed with Interview Mocha's comprehensive IT skill test batteries and their ability to provide tailor-made assessments quickly. The results we got from Interview Mocha exceeded our expectations, employees found the tests quick, fun, and a benchmark of their knowledge."

Ajay Garg, Siemens,
Associate Manager
Question

How can we check input parameters before adding it to a query in the controller?

Answer
    • if (Input::has('search')) {
      $queryString = Input::get('search');
      $builder->where('name', 'LIKE', "%$queryString%");
      }

    • if (request('search')) {
      $queryString = Input::get('search');
      $builder->where('name', 'LIKE', "%$queryString%");
      }

    • if (Input::get('search')) {
      $queryString = Input::get('search');
      $builder->where('name', 'LIKE', "%$queryString%");
      }

    • if (input::('search')) {
      $queryString = Input::get('search');
      $builder->where('name', 'LIKE', "%$queryString%");
      }

Question

How do you use unique validation for two column in laravel?

Answer
    • public static $rules = array(
      'UID' => 'required|unique:{tableName},uid|unique:{tableName},user_id'
      );

    • public static $rules = array(
      'UID' => 'required|unique:{tableName},uid||unique:{tableName},user_id'
      );

    • public static $rules = array(
      'UID' => 'required|unique:{tableName},uid, unique:{tableName},user_id'
      );

    • public static $rules = array(
      'UID' => 'required|unique:{tableName}|uid|unique:{tableName}|user_id'
      );

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO