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