Skip to content

Instantly share code, notes, and snippets.

Avatar

Imran Zahoor mrimran

View GitHub Profile
@mrimran
mrimran / DuplicateResource.php
Created Nov 29, 2020 — forked from ns139426/DuplicateResource.php
Duplicate Resource Action for Laravel Nova
View DuplicateResource.php
<?php
namespace App\Nova\Actions;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Collection;
use Laravel\Nova\Actions\Action;
use Laravel\Nova\Fields\ActionFields;