1.
Laravel Fundamentals
- 2.
How does Laravel follow the MVC architecture?
- 3.
What server requirements does Laravel have?
- 4.
How would you install or set up a Laravel project?
- 5.
Explain routing in Laravel.
- 6.
What are middleware in Laravel?
- 7.
Can you describe the Laravel request lifecycle?
- 8.
What are Service Providers in Laravel?
- 9.
What is Eloquent ORM in Laravel?
- 10.
How does one perform validations in Laravel?
- 11.
What are Laravel Contracts?
- 12.
Can you describe the directory structure of a Laravel Framework?
- 13.
How do you configure a database in Laravel?
- 14.
Explain migration in Laravel and its purpose.
- 15.
What is the command to create a controller in Laravel?
Laravel Controllers
- 16.
What is a Resource Controller in Laravel?
- 17.
How to pass data from controller to view in Laravel?
- 18.
Explain the concept of Single Action Controllers.
- 19.
How to define a resource controller with limited actions?
- 20.
What are invokable controllers in Laravel?
Laravel Requests and Responses
- 21.
How can you retrieve inputs from the request in Laravel?
- 22.
What is Response in Laravel and how can you customize responses?
- 23.
Explain redirect responses in Laravel.
- 24.
How would you work with cookies in Laravel?
Laravel Views and Blade Templates
- 25.
What are Blade templates and how do they differ from regular PHP templates?
- 26.
How do you include a sub-view into a view in Laravel?
- 27.
Explain Layouts in Blade views.
- 28.
Describe ways of passing data to views.
- 29.
How can you perform looping in blade templates?
Laravel Eloquent and Database Interaction
- 30.
How do you define relationships in Eloquent?
- 31.
Explain Eloquent Collections in Laravel.
- 32.
What are Accessors and Mutators in Eloquent and when would you use them?
- 33.
What is the N+1 problem in ORM and how does Laravel address it?
- 34.
How do you perform database transactions in Laravel?
Laravel Routing
- 35.
What is named routing in Laravel?
- 36.
How can you define parameters in routes?
- 37.
What are route prefixes and how are they useful?
- 38.
How do you group routes in Laravel?
- 39.
Explain the concept of rate limiting in Laravel routes.
Laravel Middleware
- 40.
How do you create and register a middleware in Laravel?
- 41.
What is the purpose of middleware groups in Laravel?
- 42.
How can you assign middleware to routes?
- 43.
Can middleware be terminated in Laravel?
Laravel Authentication and Authorization
- 44.
How does Laravel handle authentication and authorization?
- 45.
What is Gates and how does it function in user authorization?
- 46.
Explain Laravel Policies.
- 47.
How do you use the
@can
and@cannot
Blade directives? - 48.
What are the ways to implement multi-authentication in Laravel?
Laravel Security
- 49.
How does Laravel secure user input from SQL injection attacks?
- 50.
Describe how CSRF protection is implemented in Laravel.
- 51.
How does Laravel encrypt and decrypt data?
- 52.
Discuss the significance of user password hashing in Laravel.
Laravel Testing
- 53.
What testing facilities does Laravel provide?
- 54.
How can you perform unit tests in Laravel?
- 55.
Explain the concept of Feature Testing in Laravel.
- 56.
How does Laravel handle test databases?
Laravel Service Container
- 57.
What is the Laravel service container?
- 58.
How do you bind services into the container?
- 59.
What is the difference between binding and singleton binding?
- 60.
Discuss Dependency Injection in Laravel.
Laravel Service Providers
- 61.
What is the purpose of a Service Provider in Laravel?
- 62.
How do you register service providers?
- 63.
What is the difference between registering and booting in a service provider?
Laravel Advanced Features
- 64.
Explain Event Broadcasting in Laravel.
- 65.
Describe Laravel Horizon and its use-cases.
- 66.
How does Task Scheduling work in Laravel?
- 67.
What is Scout in Laravel and when to use it?
- 68.
Explain Laravel Echo and its use cases.
Laravel APIs and JSON
- 69.
How do you create a RESTful API in Laravel?
- 70.
What changes would you make to responses for an API Laravel application?
- 71.
How does Laravel handle Resource Controllers for APIs?
- 72.
Describe API Resource Classes in Laravel.
Laravel Collections
- 73.
What are Laravel collections?
- 74.
How do you create a custom collection method?
- 75.
Explain the difference between arrays and collections.
- 76.
How do you work with Lazy Collections in Laravel?
Laravel Cache
- 77.
How does Laravel implement caching?
- 78.
What are the different cache drivers available in Laravel?
- 79.
How would you clear cache in Laravel?
- 80.
Discuss using tags with Laravel Cache.
Laravel Packages and Extensions
- 81.
How can you use third-party packages in Laravel?
- 82.
What is Packalyst and how does it relate to Laravel?
- 83.
How can you create a custom Laravel package?
Laravel Queue and Job Processing
- 84.
Discuss the queue system in Laravel.
- 85.
How do you handle failed jobs in Laravel?
- 86.
What are the different ways of running tasks asynchronously in Laravel?
- 87.
Explain the database queue driver in Laravel.
Laravel Localization
- 88.
How does Laravel support localization?
- 89.
What are translation strings and how are they used in Laravel?
- 90.
How would you manage configuration-based text in multiple languages?
Laravel Mail
- 91.
How do you send emails using Laravel?
- 92.
What is Mailable in Laravel?
- 93.
Discuss ways to preview email templates in Laravel.
- 94.
How do you attach files to emails in Laravel?
Laravel Notifications
- 95.
What purpose do notifications serve in Laravel?
- 96.
How do you send out notifications in Laravel?
- 97.
Explain how to store notifications in a database.
- 98.
How would you customize the notification channels?
Laravel Performance Optimization
- 99.
What are the ways to optimize a Laravel application’s performance?
- 100.
How do asset bundling and minification work in Laravel?