33 行
736 B
PHP
33 行
736 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Api;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
|
|
class FatherRelationsController extends Controller {
|
|
public function register () {}
|
|
|
|
public function updateHireDate ($child_id) {}
|
|
|
|
public function deleteRelationFather ($father_id) {
|
|
// 削除成功
|
|
if (FatherRelation::where('father_id', $father_id)->delete()) {
|
|
return ['status_code' => 200];
|
|
}
|
|
|
|
// 削除失敗
|
|
return ['status_code' => 400];
|
|
}
|
|
|
|
public function deleteRelationChild ($child_id) {
|
|
// 削除成功
|
|
if (FatherRelation::where('child_id', $child_id)->delete()) {
|
|
return ['status_code' => 200];
|
|
}
|
|
|
|
// 削除失敗
|
|
return ['status_code' => 400];
|
|
}
|
|
}
|