Skip to content

A Laravel interview project featuring blog CRUD, queue-based welcome emails, event broadcasting with real-time notifications, and controller refactoring for validation, security, and performance.

Notifications You must be signed in to change notification settings

ahmadkhalid-dev/laravel-interview-task

Repository files navigation

Laravel Interview Task

Task Descriptions

Task 1: Create a small Laravel application to manage blog posts with the following features:

Migration:

Create a migration to define a posts table with necessary columns.

Model:

Create a Post model and a User model with a one-to-many relationship.

Controller:

Implement methods to list, show, create, update, and delete posts.

Routes:

Define appropriate routes in web.php.

Validation:

Implement validation for post creation and updates.

Error Handling:

Ensure proper handling for missing posts and validation errors.

Submission: Provide a GitHub repository link containing the Laravel project.

Task 2: Queues & Event Broadcasting

Description: Implement the following features in your Laravel application:

Queues:

Implement background email processing using Laravel queues.

Create a queued job to send a welcome email upon user registration.

Event Broadcasting:

Implement event broadcasting using Laravel Echo and WebSockets.

Show real-time notifications when a new post is created.

Submission: Provide a GitHub repository link or a zip file containing the Laravel project, including the code for queued jobs and event broadcasting.

Task 3: Controller Refactoring

Description: Review and refactor a Laravel controller method to enhance validation, security, and performance. Provide a detailed explanation of the changes made.

Improvements to Address:

Implement proper validation for request inputs.

Ensure security measures to prevent issues like mass assignment.

Improve error handling for missing records and validation failures.

About

A Laravel interview project featuring blog CRUD, queue-based welcome emails, event broadcasting with real-time notifications, and controller refactoring for validation, security, and performance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy