1. Go to this page and download the library: Download moox/builder 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/ */
moox / builder example snippets
/*
|--------------------------------------------------------------------------
| Item Types
|--------------------------------------------------------------------------
|
| This array contains the types of items 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
php artisan builder:create Post --app
# Generates in App/Filament
php artisan builder:create Post --package
# Asks for the Package
php artisan builder:create Post --preview
# Generates in App/Builder and migrates
# To preview: https://your.test/builder/
bash
// Publish and run the migrations:
php artisan vendor:publish --tag="builder-migrations"
php artisan migrate
// Publish the config file with:
php artisan vendor:publish --tag="builder-config"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.