forked from s421507/eOSP2
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(){
|
||||
@ -321,6 +322,7 @@ class operationsController extends Controller
|
||||
public function destroy($id)
|
||||
{
|
||||
operations::find($id)->delete($id);
|
||||
//redirect()->to('/wyjazdy');
|
||||
|
||||
return response()->json([
|
||||
'success' => 'Record deleted successfully!'
|
||||
|
@ -18,7 +18,7 @@ class User extends Authenticatable
|
||||
* @var array
|
||||
*/
|
||||
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