Skip to content

Instantly share code, notes, and snippets.

@tabuna
Created January 14, 2019 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tabuna/b5066f5b69020040b2df1bc63af02c8a to your computer and use it in GitHub Desktop.
Save tabuna/b5066f5b69020040b2df1bc63af02c8a to your computer and use it in GitHub Desktop.
UserEditLayout.php
<?php
declare(strict_types=1);
namespace App\Orchid\Layouts\User;
use Orchid\Screen\Layouts\Rows;
use Orchid\Screen\Fields\InputField;
class UserEditLayout extends Rows
{
public function fields(): array
{
return [
InputField::make('user.name')
->type('text')
->required()
->title(__('Name'))
->placeholder(__('Name')),
InputField::make('user.email')
->type('email')
->required()
->title(__('Email'))
->placeholder(__('Email')),
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment