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