1. Go to this page and download the library: Download entelechy/architect 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/ */
entelechy / architect example snippets
use Entelechy\Architect\Facades\Architect;
use Entelechy\Architect\Table\Columns\TextColumn;
public function definition(): array
{
return Architect::table()
->model(User::class)
->columns([
TextColumn::make('name')->sortable()->searchable(),
TextColumn::make('email')->sortable(),
])
->build();
}
use Entelechy\Architect\Facades\Architect;
use Entelechy\Architect\Forms\Fields\TextField;
use Entelechy\Architect\Forms\Fields\SelectField;
public function definition(): array
{
return Architect::form()
->fields([
TextField::make('name')->
bash
php artisan architect:init
bash
# Interactive install
php artisan architect:install
# Wire a specific layout non-interactively
php artisan architect:init --layout=resources/views/layouts/app.blade.php
# Preview all changes without writing files
php artisan architect:init --dry-run --layout=resources/views/layouts/app.blade.php