for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SoareCostin\BladeFormComponents\FormElements;
use SoareCostin\BladeFormComponents\FormElement;
class Submit extends FormElement
{
protected function attributesList()
return [
'class', 'disabled',
];
}
protected function setLabel()
parent::setLabel();
if (is_null($this->label)) {
is_null($this->label)
false
$this->label = is_null($this->model) ? 'Create' : 'Edit';
protected function setDefaultClass()
// Specific to Bootstrap, we need to add it to config
$this->class[] = 'btn btn-primary';