Created
January 14, 2019 19:23
-
-
Save tabuna/b5066f5b69020040b2df1bc63af02c8a to your computer and use it in GitHub Desktop.
UserEditLayout.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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