Laraship

  1. Home
  2. Docs
  3. Laraship
  4. Customize Laraship
  5. Create Your Own Plugin

Create Your Own Plugin

  • If  you are a developer and willing to create a new module, for example, Cars , we have prepared a skeleton for you under Corals/Modules/FooBar
  • Rename _module.json to module.json and update the details to match your new Module
{
  "code": "test-car",
  "name": "Cars Management",
  "author": "car-author",
  "type": "module",
  "description": "Car Management Moduke",
  "namespace": "Corals\\Modules\\Car",
  "version": "1.0",
  "folder": "Car",
  "autoload": "psr-4",
  "icon": "fa fa-car",
  "require": {
    
  }
}
  • replace FooBar ==> Car and   foobar ===>  car inside module files, make sure its case sensitive replace
  • rename Files and folders : FooBar ==> Car and   foobar ===>  car inside module files, make sure its case sensitive replace.
  • customize the module tables columns inside migration file :

for more details about Laravel migrations refer to official documentation https://laravel.com/docs/5.5/migrations

  • You should be able to see your module under Administration ==> Modules, once you click to install application will load your and create a database.

BLACK FRIDAY

50% DISCOUNT ON OUR ENTIRE STORE
COUPON CODE : BLACKFRIDAY
GO TO STORE
Offer Ends December 15th
close-link