insert([ [ "id" => '1', "purpose_id" => '12', "product_id" => '11', "meta_keywords_purpose" => 'dfffgdfdf', ], [ "id" => '2', "purpose_id" => '12', "product_id" => '11', "meta_keywords_purpose" => 'dfffgdfdf', ], ]); DB::table('permissions')->insert([ [ 'slug' => 'purpose.products_purpose.view', 'name' => 'View ProductsPurpose', ], [ 'slug' => 'purpose.products_purpose.create', 'name' => 'Create ProductsPurpose', ], [ 'slug' => 'purpose.products_purpose.edit', 'name' => 'Update ProductsPurpose', ], [ 'slug' => 'purpose.products_purpose.delete', 'name' => 'Delete ProductsPurpose', ], // Customize this permissions if needed. [ 'slug' => 'purpose.products_purpose.verify', 'name' => 'Verify ProductsPurpose', ], [ 'slug' => 'purpose.products_purpose.approve', 'name' => 'Approve ProductsPurpose', ], [ 'slug' => 'purpose.products_purpose.publish', 'name' => 'Publish ProductsPurpose', ], [ 'slug' => 'purpose.products_purpose.unpublish', 'name' => 'Unpublish ProductsPurpose', ], [ 'slug' => 'purpose.products_purpose.cancel', 'name' => 'Cancel ProductsPurpose', ], [ 'slug' => 'purpose.products_purpose.archive', 'name' => 'Archive ProductsPurpose', ], ]); DB::table('menus')->insert([ [ 'parent_id' => 1, 'key' => null, 'url' => 'admin/purpose/products_purpose', 'name' => 'ProductsPurpose', 'description' => null, 'icon' => 'fa fa-newspaper-o', 'target' => null, 'order' => 190, 'status' => 1, ], [ 'parent_id' => 2, 'key' => null, 'url' => 'user/purpose/products_purpose', 'name' => 'ProductsPurpose', 'description' => null, 'icon' => 'icon-book-open', 'target' => null, 'order' => 190, 'status' => 1, ], [ 'parent_id' => 3, 'key' => null, 'url' => 'products_purpose', 'name' => 'ProductsPurpose', 'description' => null, 'icon' => null, 'target' => null, 'order' => 190, 'status' => 1, ], ]); DB::table('settings')->insert([ // Uncomment and edit this section for entering value to settings table. /* [ 'pacakge' => 'Purpose', 'module' => 'ProductsPurpose', 'user_type' => null, 'user_id' => null, 'key' => 'purpose.products_purpose.key', 'name' => 'Some name', 'value' => 'Some value', 'type' => 'Default', 'control' => 'text', ], */ ]); } }