get(); return view('country.index', compact('countries')); } public function create() { return view('country.create'); } public function store(Request $request) { Country::create(); return redirect()->route('countries.index')->with('success','country has been created successfully.'); } public function edit(Country $country) { return view('country.edit',compact('country')); } public function update(Request $request, Country $country) { $country->updated_at = time(); $country->save(); return redirect()->route('countries.index')->with('success','country Has Been updated successfully'); } public function destroy(Country $country) { $country->delete(); return redirect()->route('countries.index')->with('success','country has been deleted successfully'); } }