Amitav Roy

Blog on web and travel

Developing a package in Laravel 5.1 – Part 1

Posted on 10th December, 2017 by Amitav Roy

Developing a package is one of making modular code. Packages ensure that code can be easily reused from one application to the other and building packages inside L5 is now even simpler.

In this tutorial I will show you how to build our own package. In this tutorial we will do the following things:

create the composer json file write our service provider which is the main file for Laravel to know our package. Create package’s routes file and have our own write which will call up a controller To get the code for this tutorial go to this Github url