Added fields iban, bankname, blz, kontonr to user class
This commit is contained in:
parent
ff0e6dfb46
commit
41753d9c46
4 changed files with 34 additions and 1 deletions
|
|
@ -177,6 +177,11 @@ class UsersController extends Controller
|
|||
$user->lastname=request('lastname');
|
||||
$user->email=request('email');
|
||||
|
||||
if (request()->has('iban')) { $user->iban = request('iban'); }
|
||||
if (request()->has('bankname')) { $user->bankname = request('bankname'); }
|
||||
if (request()->has('blz')) { $user->blz = request('blz'); }
|
||||
if (request()->has('kontonr')) { $user->kontonr = request('kontonr'); }
|
||||
|
||||
if (request()->has('admin')) {
|
||||
$user->admin = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class User extends Authenticatable
|
|||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name', 'firstname', 'lastname', 'email', 'password', 'gets_reminders'
|
||||
'name', 'firstname', 'lastname', 'email', 'password', 'gets_reminders', 'iban', 'bankname' , 'blz', 'kontonr'
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@ class CreateUsersTable extends Migration
|
|||
$table->string('lastname', 100);
|
||||
$table->string('email',150)->unique();
|
||||
$table->string('password',100);
|
||||
|
||||
$table->string('iban', 128);
|
||||
$table->string('bankname', 64);
|
||||
$table->string('blz', 20);
|
||||
$table->string('kontonr', 64);
|
||||
|
||||
$table->timestamp('deleted')->nullable();
|
||||
$table->boolean('admin')->default(false);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,28 @@
|
|||
<input type="text" class="form-control" id="lastname" name="lastname" value="{{ $user->lastname }}" required>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="lastname">IBAN:</label>
|
||||
<input type="text" class="form-control" id="iban" name="iban" value="{{ $user->iban }}" required>
|
||||
</div>
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="lastname">Bankname:</label>
|
||||
<input type="text" class="form-control" id="bankname" name="bankname" value="{{ $user->bankname }}" required>
|
||||
</div>
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="lastname">BLZ:</label>
|
||||
<input type="text" class="form-control" id="blz" name="blz" value="{{ $user->blz }}" required>
|
||||
</div>
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="lastname">Kontonummer:</label>
|
||||
<input type="text" class="form-control" id="kontonr" name="kontonr" value="{{ $user->kontonr }}" required>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<p> </p>
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="name">Zahlung für Saison:</label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue