1. Go to this page and download the library: Download monstrex/ave 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/ */
monstrex / ave example snippets
namespace App\Ave\Resources;
use Monstrex\Ave\Admin\BaseResource;
use Monstrex\Ave\Core\Components\Fields\TextInput;
use Monstrex\Ave\Core\Components\Fields\Media;
use Monstrex\Ave\Core\Components\Columns\Column;
use Monstrex\Ave\Core\Components\Columns\ImageColumn;
use App\Models\Post;
class PostResource extends BaseResource
{
public static string $model = Post::class;
protected static ?string $slug = 'posts';
public function fields(): array
{
return [
TextInput::make('title')->
Fieldset::make('team_members')
->schema([
TextInput::make('name')->leImagePreset::class),
Textarea::make('bio'),
])
->sortable()
->collapsible()
->minItems(1)
->maxItems(10)
->headTitle('name') // Use 'name' field as item title
->addButtonLabel('Add Team Member')
BelongsToSelect::make('parent_id')
->relationship('parent', 'title')
->hierarchical() // Requires parent_id and order columns
->nullable()
->where(fn($q) => $q->where('status', 'active'))