Formatting fixes.
This commit is contained in:
parent
0437947c82
commit
86b9f3d2f0
7 changed files with 161 additions and 161 deletions
|
|
@ -6,24 +6,24 @@ use App\Models\Character;
|
|||
|
||||
class CharacterForm extends ModelForm
|
||||
{
|
||||
/**
|
||||
* Redirect after this route after record was created.
|
||||
*/
|
||||
public string $redirect_route = 'admin.character.index';
|
||||
/**
|
||||
* Redirect after this route after record was created.
|
||||
*/
|
||||
public string $redirect_route = 'admin.character.index';
|
||||
|
||||
public function mount(Character $character)
|
||||
{
|
||||
$this->record = $character;
|
||||
$this->exist = $character->exists;
|
||||
}
|
||||
public function mount(Character $character)
|
||||
{
|
||||
$this->record = $character;
|
||||
$this->exist = $character->exists;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validation rules
|
||||
*/
|
||||
protected function rules()
|
||||
{
|
||||
return [
|
||||
'record.name' => 'required|string|min:3|max:14',
|
||||
];
|
||||
}
|
||||
/**
|
||||
* Validation rules
|
||||
*/
|
||||
protected function rules()
|
||||
{
|
||||
return [
|
||||
'record.name' => 'required|string|min:3|max:14',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue