Laravel, PHP, Web Development.
the database. First, in order to access the Car model in the controller, we need to add a new use statement above the controller class: . . . use App\Car; class CarController extends Controller { . . . Then, we can complete the show action with the following code: . . . public function show($id) {