Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$mapper->file not working #70

Open
milantestagena opened this issue Mar 25, 2015 · 1 comment
Open

$mapper->file not working #70

milantestagena opened this issue Mar 25, 2015 · 1 comment

Comments

@milantestagena
Copy link

When I add that field in Admin:

$mapper->file( 'name' )->location( $server_root );

when I go to Add new page I get this error:

Class 'KraftHaus\Bauhaus\Field\View' not found

Symfony\Component\Debug\Exception\FatalErrorException
…/­vendor/­krafthaus/­bauhaus/­src/­KraftHaus/­Bauhaus/­Field/­FileField.php92

@henar
Copy link

henar commented May 13, 2015

I found a solution and it worked for me:

include "use Illuminate\Support\Facades\File;" in file:

krafthaus/bauhaus/src/Krafthaus/Bauhaus/field/Filefield.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants