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(){ 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!'

View File

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