create new object for user
This commit is contained in:
@@ -434,6 +434,7 @@ class UserController extends Controller
|
||||
|
||||
$user->password = Hash::make($request->password);
|
||||
$user->national_code = $request->national_code;
|
||||
$user->station_id = $request->station_id;
|
||||
$user->save();
|
||||
|
||||
if (auth()->user()) {
|
||||
|
||||
@@ -38,6 +38,15 @@ class RoadMaintenanceStationController extends Controller
|
||||
));
|
||||
}
|
||||
|
||||
public function findByCity(Request $request): JsonResponse
|
||||
{
|
||||
$stations = RahdariPoint::query()
|
||||
->where('city_id', $request->city_id)
|
||||
->get();
|
||||
|
||||
return $this->successResponse($stations);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user