Features of Laravel Framework

Medha Shree
2 min readDec 7, 2021

Recently I got a chance to learn Laravel Framework while working on a project.

While working with Laravel Framework, I came to know about some of its features which really help to ease the complex processes.

Some of them are as mentioned below:

  1. ORM Eloquent — ORM stands for Object Relation Mapping. It is one of the built-in features of Laravel Framework which helps to interact with the database objects and relationships. ORM Eloquent provides a way to write the queries using PHP rather than using SQL Queries.
  2. Artisan — Laravel Framework provides a command-line interface known as artisan. There is a list of artisan commands which can be used for different purposes while working with Laravel Framework. Some of the frequently used artisan commands are as mentioned below:

a) php artisan make:controller ControllerName — used for creating a controller where ControllerName is the desired name of your controller

b) php artisan make:model ModelName — used for creating a model where ModelName is the desired name of your model

c) php artisan migrate — for migrating the tables to the database

d) php artisan serve — for running the application(when this command is executed in the terminal then it generates a link after getting execution, clicking on that link or copying and pasting it in the browser will show the running application).

and so on.

3. apiResource — apiResource is used in the creation of API routes in Laravel.The advantage of using apiResource is that it covers all the four methods known as GET Method, POST Method, PUT Method and Delete Method. So the use of apiResource avoids the extra work for the creation of each four methods individually for the same controller.

4. Unit Testing — Laravel Framework provides a feature of running a bunch of test cases for avoiding any errors while the application is in the development phase.

5. Seeder — Seeder is a class provided by Laravel Framework which helps to insert the test data in a particular table present in the database.

6. Security — Laravel Framework takes care of the security of the application by generating a distinct and secure key within its own framework.

The above-mentioned points cover some of the features provided by Laravel Framework.

--

--

Medha Shree

Hey there! I am Medha Shree. I try writing about the little things which matter to me.