gathuku
3 months ago

Laravel Form Builder

Posted 3 months ago by gathuku

I was debugging an error related with laravel form Builder. Here's the error stack

[2019-05-19 11:11:06] local.ERROR: ErrorException: Illegal string offset 'name' in /home/moses/Documents/WEB/laravel/loan/vendor/laravelcollective/html/src/FormBuilder.php:273
Stack trace:
#0 /home/moses/Documents/WEB/laravel/loan/vendor/laravelcollective/html/src/FormBuilder.php(273): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Illegal string ...', '/home/moses/Doc...', 273, Array)
#1 /home/moses/Documents/WEB/laravel/loan/vendor/laravelcollective/html/src/FormBuilder.php(484): Collective\Html\FormBuilder->input('file', 'company_logo', NULL, '')
#2 /home/moses/Documents/WEB/laravel/loan/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Collective\Html\FormBuilder->file('company_logo', '', Array)
#3 /home/moses/Documents/WEB/laravel/loan/storage/framework/views/e46d5901ebec5d06a99068ca5770f4e323b66982.php(116): Illuminate\Support\Facades\Facade::__callStatic('file', Array)
#4 /home/moses/Documents/WEB/laravel/loan/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(42): include('/home/moses/Doc...')
#5 /home/moses/Documents/WEB/laravel/loan/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('/home/moses/Doc...', Array)
#6 /home/moses/Documents/WEB/laravel/loan/vendor/laravel/framework/src/Illuminate/View/View.php(137): Illuminate\View\Engines\CompilerEngine->get('/home/moses/Doc...', Array)
#7 /home/moses/Documents/WEB/laravel/loan/vendor/laravel/framework/src/Illuminate/View/View.php(120): Illuminate\View\View->getContents()
#8 /home/moses/Documents/WEB/laravel/loan/vendor/laravel/framework/src/Illuminate/View/View.php(85): Illuminate\View\View->renderContents()
#9 /home/moses/Documents/WEB/laravel/loan/vendor/laravel/framework/src/Illuminate/Http/Response.php(38): Illuminate\View\View->render()

Anyone hint how i can solve the error.

Please sign in or create an account to participate in this conversation.