uzupełnienie modelu użytkownika + fix buga przy odświerzaniu podstrony Wyjazdy
This commit is contained in:
parent
9c2e7dbc5f
commit
586242aa3a
@ -240,7 +240,8 @@ class operationsController extends Controller
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return operationsController::create();
|
//return operationsController::create();
|
||||||
|
return redirect()->to('/wyjazdy');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update(){
|
public function update(){
|
||||||
@ -321,6 +322,7 @@ class operationsController extends Controller
|
|||||||
public function destroy($id)
|
public function destroy($id)
|
||||||
{
|
{
|
||||||
operations::find($id)->delete($id);
|
operations::find($id)->delete($id);
|
||||||
|
//redirect()->to('/wyjazdy');
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'success' => 'Record deleted successfully!'
|
'success' => 'Record deleted successfully!'
|
||||||
|
@ -18,7 +18,7 @@ class User extends Authenticatable
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'name', 'surname', 'password', 'PESEL', 'phoneNumber', 'email', 'fireStationID', 'functionID', 'degreeID', 'number', 'statusID', 'deleted', 'creatorID', 'changingID', 'confirmation_code',
|
'name', 'surname', 'password', 'PESEL', 'phoneNumber', 'email', 'fireStationID', 'functionID', 'degreeID', 'number', 'statusID', 'deleted', 'creatorID', 'changingID', 'confirmation_code','secondName','fathersName','mothersName','address','apartment','placeOfBirth','driversLicense','joiningOSPDate','IDSeries','IDNumber','IDValidUntil','identityCardNumber','homePhoneNumber','education','profession',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user