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

put largefile field extend to service provider #3

Open
xiaohuilam opened this issue Mar 28, 2019 · 0 comments
Open

put largefile field extend to service provider #3

xiaohuilam opened this issue Mar 28, 2019 · 0 comments

Comments

@xiaohuilam
Copy link

5,注册进laravel-admin,在app/Admin/bootstrap.php中添加以下代码:
````
Encore\Admin\Form::extend('largefile', \Encore\LargeFileUpload\LargeFileField::class);
````

I suggest to put it into service provider's boot

    public function boot()
        Admin::booting(function () {
             \Encore\Admin\Form::extend('largefile', \Encore\LargeFileUpload\LargeFileField::class); 
        });
    }
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

1 participant