for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers\Personsubm;
use App\PersonSubm;
use Illuminate\Routing\Controller;
class Destroy extends Controller
{
public function __invoke(PersonSubm $personSubm)
$personSubm->delete();
return [
'message' => __('The person subm was successfully deleted'),
'redirect' => 'personsubm.index',
];
}