1
0
forked from s421507/eOSP2

uzupełnienie modelu użytkownika + fix buga przy odświerzaniu podstrony Wyjazdy

This commit is contained in:
Krzysztof Strzelecki 2020-07-20 16:09:02 +02:00
parent 9c2e7dbc5f
commit 586242aa3a
2 changed files with 4 additions and 2 deletions

View File

@ -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!'

View File

@ -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',
];
/**