So show us the actual implementation of the inputText()
method then.
Here is the method (i know this is useless it is just for testing), when calling {{ HelperView::inputText() }} I get plain text..
namespace Tymax\Helpers;
use Illuminate\Http\Request;
use Illuminate\Html\FormBuilder;
class HelperView {
public static function inputText() {
return "Form::text('best_time_call', null, array('class' => 'input-sm'))";
}
}
Try dropping the quotes:
public static function inputText() {
return Form::text('best_time_call', null, array('class' => 'input-sm'));
}
Awsome, thanks rscafi! I didn't think of that. For anyone else I just had to add
use Illuminate\Support\Facades\Form
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community