Support the ongoing development of Laravel.io →
posted 8 years ago
Forms
Last updated 2 years ago.
0

Just setup Collective how it is supposed to be setup. Follow the install instructions. There is no extending classes or creating your own providers for this.

Then you can add your macros to any service provider for your application.

public function boot()
{
    \Form::macro('textField', function ( ... ) {
        ..
    });
}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

netm netm Joined 2 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.