Laravel utilizes Composer to manage its dependencies.
All service providers extend the Illuminate\Support\ServiceProvider class. Most service providers contain a register and a boot method. Within the register method, you should only bind things into the service container. You should never attempt to register any event listeners, routes, or any other piece of functionality within the register method.
Laravel framework has in-built lightweight blade template engine to speed up compiling tasks, and create layouts with dynamic content easily.
Hassles code reusability.
Eloquent ORM with PHP active record implementation
Built in command line tool “Artisan” for creating a code skeleton ,database structure and build their migration
Cons of using laravel Framework
Development process requires you to work with standards and should have real understanding of programming
Laravel is new framework and composer is not so strong in compare to npm (for node.js), ruby gems and python pip.
Development in laravel is not so fast in compare to ruby on rails.
Laravel is lightweight so it has less inbuilt support in compare to django and rails. But this problem can be solved by integrating third party tools, but for large and very custom websites it may be a tedious task
Multiple file system
dotenv – Environment Detection
Laravel is a framework with expressive, elegant syntax
Development is enjoyable, creative experience
Laravel is built for latest version of PHP
It is more object oriented compared to CodeIgniter
Laravel community is still small, but it is growing very fast.
CodeIgniter is a powerful PHP framework
Simple and elegant toolkit to create full-featured web applications.
Codeigniter is an older more mature framework
It is less object oriented compared to Laravel.
Codeigniter community is large.
Reverse Routing: This allows you to change your routes and application will update all of the relevant links as per this link.
IoC container: It gives you Control gives you a method for generating new objects and optionally instantiating and referencing singletons.
config/app.phpconfiguration file. This file contains a providers array where you can list the class names of your service providers.
- Lumen is a micro-framework provided by Laravel.
- It is developed by creator of Laravel Taylor Otwell.
- It is mostly used for creating RESTful API’s & microservices.
- Lumen is built on top components of Laravel.
I just have installed a fresh version of Laravel 5, and I have the white screen of death. What’s wrong?
events/actionsthat occur in your application.
All Event classes are generally stored in the
app/Eventsdirectory, while their listeners are stored in
app/Listenersof your application.
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension
It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly.
Lumen is basically used for building Laravel based micro-services and lightweight fastest Web API’s.
You can also add a new Guard in Laravel.
Middleware can inspect a request and decorate it, or reject it, based on what it finds.
This complete list of Laravel Interview Questions would help crack the Laravel interview.
#4. Blade Template Engine
#5. Laravel Models
#7. Eloquent ORM
#8. Artisan CLI
- MVC support – Model-View-Controller architecture
- Secure authentication and authorization
- Rapid Application Development
- Blade Template Engine for creating/managing views.
- Eloquent ORM (object-relational mapping)
- Query Builder
- Migrations mechanism for Databases
- Homestead – virtual machine
- Artisan language
- Unit testing
- External packages support.
- Emailing facility
Represents the main business logic layer. It maintains and prepares the data based on the request from various controllers. This is not exposed to users.
This is the UI part of an application, display layer that interacts with users. This is visible to users.
A Controller is an intermediate between View and Models to control input/outputs ..more specifically saying handles application requests/responses.
$php artisan --version
Output - Laravel Framework version 5.2.45