Skip to content

Commit

Permalink
Fixed the prefix for urls so its working correctly. You need change t…
Browse files Browse the repository at this point in the history
…he config entry prefix so the package can continue to work. Add a default for '' prefix configuration for backwards capability.
  • Loading branch information
Max-Hutschenreiter committed Aug 26, 2022
1 parent f9d4ef5 commit 1347018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Workflows.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Workflows
{
public static function routes()
{
Route::group(['prefix' => config('workflows.prefix'), 'namespace' => __NAMESPACE__.'\Http\Controllers'], function () {
Route::group(['prefix' => empty(config('workflows.prefix')) ? 'workflows' : config('workflows.prefix'), 'namespace' => __NAMESPACE__.'\Http\Controllers'], function () {
Route::get('/', 'WorkflowController@index')->name('workflow.index');
Route::get('create', 'WorkflowController@create')->name('workflow.create');
Route::post('store', 'WorkflowController@store')->name('workflow.store');
Expand Down

0 comments on commit 1347018

Please sign in to comment.