Laravel extend Form class
I'm trying to extend the Form class in L4.1 but I seem to be missing something. My file is named FormBuilder.php based on the API and is saved in app/libraries/extended/FormBuilder.php . <?php namespace Extended; class FormBuilder extends \Illuminate\Html\FormBuilder { /** * Create a text input field. * * @param string $name * @param string $value * @param array $options * @return string */ public function text($name, $value = null, $options = array()) { $options = $options + array('id'=>"field-{$name}"); return $this->input('text', $name, $value, $options); } } This is actually the first time