Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
E

Edit Custom Tool Link

Readme

Edit Resource Button.

In Laravel Nova, when you use Custom Tool for creating/editing/updating Custom Page,

you might need "Edit Resource Button" with edit SVG icon as custom link field.

Install using

composer require achalj09/editresource

Use in resources

use Achalj09\Editresource\Editresource;


Editresource::make('Edit','edit')
  ->details([
      'href' => function () {
          return "../../createjobs/{$this->id}/edit";
      },
      'text' => function () {
          return 'edit';
      },
  ])->onlyOnIndex()
  ->canSee(function ($request) {
      return $request->user()->can('Update Jobs', $this);
}),

Output

alt Sample Image

Screenshots

Back to Top
Added 7 years ago
Last updated 7 Years Ago
Version 0.0.1
Composer
achalj09/editresource
GitHub stars 4
Packagist downloads 17,264

Favorites

2 users favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas