Helper classes for laravel-admin/wordpress
This package is experimental, don't use it for production., (*1)
This package is not yet available with packagist, so you have to create a repositories section in you composer.json file., (*2)
"repositories": [ { "type": "vcs", "url": "https://github.com/laravel-admin/headless-wordpress" } ]
Add a repositories section to you composer.json to fetch the Wordpress packagist., (*3)
"repositories": [ { "type": "composer", "url": "https://wpackagist.org" } ],
Add some installer paths, (*4)
"extra": { "installer-paths": { "public/mu-plugins/{$name}": ["type:wordpress-muplugin"], "public/plugins/{$name}": ["type:wordpress-plugin"], "public/themes/{$name}": ["type:wordpress-theme"] }, "wordpress-install-dir": "public/wordpress" }
Run composer, (*5)
composer require laravel-admin/headless-wordpress
Add the service provider to your config/app.php, (*6)
LaravelAdmin\HeadlessWordpress\HeadlessWordpressServiceProvider::class,
Add some folders to your gitignore:, (*7)
public/languages public/plugins public/upgrade public/uploads public/wordpress
Publish the public files, (*8)
artisan vendor:publish --tag="public"