mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Plugged in repository class for location data
Seperated data logic for locations and put it into its own repository class for better organization and readability of controller classes. Data methods are still simple so no need for an interface class just yet, but will probably implement at a later date
This commit is contained in:
@ -30,6 +30,7 @@ class AppealController extends Controller
|
||||
'error' => 'Appeal already in process for Location',
|
||||
]);
|
||||
} else {
|
||||
//TODO: Add empty string filtering and check if location exists in DB
|
||||
$new = Appeal::create([
|
||||
'uuid' => Uuid::uuid4(),
|
||||
'location' => $request->location,
|
||||
|
Reference in New Issue
Block a user