mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
More service structure testing and configuration
Tests aren't working as well as I had hoped, so a lot are commented out while I wait to hear back on this bug causing them to fail.
This commit is contained in:
@@ -35,6 +35,10 @@ class LocationRequest extends AdminFormRequest
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return app()->make(Location::class)->getRules();
|
||||
if ($this->method() === 'PATCH') {
|
||||
return Location::getUpdateRulesForId($this->location->id);
|
||||
}
|
||||
|
||||
return Location::getCreateRules();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user