Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ protected function fireBootedCallbacks()

public static function asset($asset)
{
return url('/vendor/open-admin/'.$asset);
return admin_asset('/vendor/open-admin/'.$asset);
}

public static function js_trans()
Expand Down
4 changes: 4 additions & 0 deletions src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ public function pushField(Field $field): self
*/
public function model(): Model
{
if ($this->model instanceof Actions\Interactor\Form) {
return $this->model->getRow();
}

return $this->model;
}

Expand Down