Follow these steps to successfully create a package in Laravel:
  • Creating a Folder Structure
  • Creating the Composer File
  • Loading the Package from the Main Composer.JSON File
  • Creating a Service Provider for Package
  • Creating the Migration
  • Creating the Model for the Table
  • Creating a Controller
  • Creating a Routes File
  • Creating the Views
  • Updating the Service Provider to Load the Package
  • Update the Composer File
BY Best Interview Question ON 29 May 2020