Technology 4 Created on June 04, 2022 By detoximinddev Technology LARAVEL QUIZES 1 / 19 7.Which of following methods are used in database migrations classes? execute() and rollback() up() and down() run() and delete() save() and update() 2 / 19 8.How to create a controller in laravel by cmd? php artisan make: generate controller contoller_name php artisan make:controller generate php artisan make:controller --plain php artisan make:request controller_name create 3 / 19 9.Who developed Laravel? Rasmus Lerdorf Taylor Otwell James Gosling Guido van Rossum 4 / 19 10.How to set a session data in Laravel? $request->db->session('key', 'value'); $request->session()->set('key', 'value'); $request->session()->put('key', 'value'); None of These 5 / 19 20.What is the minimum PHP version required to install Laravel 5.3? 7.1 5.6.3 5.3.2 5.4.3 6 / 19 11.__() in laravel used for Printing value For string translation 7 / 19 12. What is the HTTP Status Code for your website. When it is down for maintenance. 501 200 400 503 8 / 19 13.Interpolation of variable in laravel done using compact {{}} helpers 9 / 19 14.Which directory contain “robot.txt” file ? app public config storage 10 / 19 15. For what do the .env is used? For setting environment variables For running cron jobs For tracking vendors None of These 11 / 19 17. Which method returns the average value of a given key ? average() avg() median() avg_val() 12 / 19 18. Bootstrap directory in Laravel is used to Initialize a Laraval application Call laravel library functions Load the configuration files Load laravel classes and models 13 / 19 19.Which artisan command is used to remove the compiled class file. clear-compiled clear compiled compiled:clear clear:all 14 / 19 1.Which of following methods are used in database migrations classes? execute() and rollback() up() and down() run() and delete() save() and update() 15 / 19 2. Which of following command is used to create a symbolic link from "public/storage" directory to "storage/app/public". storage:link link:public link:storage storage:link public/storage 16 / 19 3.View files in Laravel end in .blade.php .php .vue .blade 17 / 19 4.Where is the routing file located in Laravel ? app/Http/ routes/ urls/ vendors/ 18 / 19 5.The vendor directory contains Laravel Framework code Assets Third-party code Configuration files 19 / 19 6.Which method breaks the collection into multiple, smaller collections of a given size split() chunk() explode() break() Your score is The average score is 68% LinkedIn Facebook Twitter VKontakte 0% Restart quiz