Skip to content

magentix/unopim-cms-custom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UnoPim CMS Custom

An example package to enrich CMS page entity with new attributes.

CMS Page custom attributes

Installation

  • Create packages/Magentix/CmsCustom directory

  • Copy the repository files into this new directory (packages/Magentix/CmsCustom/src/*)

  • Register the package in composer.json

"autoload": {
    ...
    "psr-4": {
        // Other PSR-4 namespaces
        "Magentix\\CmsCustom\\": "packages/Magentix/CmsCustom/src"
    }
}
  • Register the package's service provider in the config/app.php file
<?php

return [
    
    // Other configuration options

    'providers' => ServiceProvider::defaultProviders()->merge([
        // Other service providers
        Magentix\CmsCustom\Providers\EventServiceProvider::class,
    ])->toArray(),
    
    // Other configuration options
];
  • Run the commands to execute migrations and clear the cache
php artisan migrate
php artisan optimize:clear

About

An UnoPim example package to enrich CMS page entity with new attributes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published