for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers\Customers;
use App\Http\Controllers\Controller;
use App\Models\Customer;
use Illuminate\Http\Request;
use Inertia\Inertia;
class DeactivatedCustomersController extends Controller
{
/**
* Show all customers who have been deactivated
*/
public function __invoke(Request $request)
return Inertia::render('Customer/listDeactivated', [
'list' => Customer::onlyTrashed()->get()->makeVisible('deleted_at'),
]);
}