Using the fluent syntax is the shortest way to do that, you can do:
CRUD::button('status_history')->after('update')->view('status_history');
Alternatively, if you prefer the array syntax, you can call one of these after your addButtonFromView
call:
$this->crud->moveButton($target, $where, $destination)
- see here
$this->crud->orderButtons(string $stack, array $order)
- see here
Looks like these methods are not properly documented (or at all) - sorry for that, will fix ASAP. Until then, the docblocks should explain what they do very well.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…