1. Go to this page and download the library: Download moox/category library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
/*
|--------------------------------------------------------------------------
| Category Types
|--------------------------------------------------------------------------
|
| This array contains the types of categories entities. You can delete
| the types you don't need and add new ones. If you don't need
| types, you can empty this array like this: 'types' => [],
|
*/
'types' => [
'post' => 'Post',
'page' => 'Page',
],
/*
|--------------------------------------------------------------------------
| Author Model
|--------------------------------------------------------------------------
|
| This sets the user model that can be used as author. It should be an
| authenticatable model and support the morph relationship.
| It should have fields similar to Moox User or WpUser.
|
*/
'user_model' => \App\Models\User::class,
'user_model' => \Moox\User\Models\User::class,
'user_model' => \Moox\Press\Models\WpUser::class,
bash
// Publish and run the migrations:
php artisan vendor:publish --tag="category-migrations"
php artisan migrate
// Publish the config file with:
php artisan vendor:publish --tag="category-config"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.