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