structure and style updates
This commit is contained in:
@@ -57,7 +57,7 @@ class CountriesController extends Controller
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
return view('countries::create', ['country' => new Country()]);
|
||||
return view('countries::create', ['country' => new Country]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,7 +112,6 @@ class CountriesController extends Controller
|
||||
/**
|
||||
* Build the database payload from validated request data.
|
||||
*
|
||||
* @param StoreCountryRequest|UpdateCountryRequest $request
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
private function payload(StoreCountryRequest|UpdateCountryRequest $request): array
|
||||
|
||||
@@ -16,7 +16,6 @@ class StoreCountryRequest extends FormRequest
|
||||
return (bool) $this->user()?->isMpbaPlatformAdmin();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Normalise ISO code inputs before validation.
|
||||
*/
|
||||
|
||||
@@ -16,7 +16,6 @@ class UpdateCountryRequest extends FormRequest
|
||||
return (bool) $this->user()?->isMpbaPlatformAdmin();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Normalise ISO code inputs before validation.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user