Skip to content
On this page

Customizing Models

You can change the models used by Venture internally by defining your own model and extending the corresponding Venture model:

use Sassnowski\Venture\Models\Workflow as VentureWorkflow;

class Workflow extends VentureWorkflow
    // ...

After defining your model, you can instruct Venture to use your custom model via the Sassnowski\Venture\Venture class. The best place to do so is in the boot method of one of your application’s service provider classes:

use App\Models\Venture\Workflow;
use App\Models\Venture\WorkflowJob;
use Sassnowski\Venture\Venture;

 * Bootstrap any application services.
public function boot(): void

Released under the MIT License.