Skip to content
Framework knowledgeBeginner5 questions

Laravel fundamentals check

Artisan, route model binding, configuration and queues: the things you use every day.

  1. 01Which command creates a Post model together with its migration?
  2. 02With this route, what happens when no post has the requested id?
    Route::get('/posts/{post}', function (Post $post) {
        return $post->title;
    });
  3. 03Why should env() only be called inside configuration files?
  4. 04What makes a job class run on the queue instead of immediately when it is dispatched?
  5. 05What is the difference between firstOrCreate() and firstOrNew()?

Answers are scored on the server. Unanswered questions count as incorrect.

laravel.now is an independent community project. It is not affiliated with, endorsed by, sponsored by, or in any way officially connected to Laravel, Laravel LLC, Taylor Otwell, or the Laravel framework maintainers. Laravel is a trademark of Taylor Otwell. All other trademarks belong to their respective owners.

This site is operated by the makers of Lockhound. Links to Lockhound are promotional.