structure
This commit is contained in:
@@ -29,6 +29,8 @@ class RegisterStructureController extends Controller
|
||||
'structure_type' => 'required',
|
||||
]);
|
||||
|
||||
$tax = floatval($request->tax);
|
||||
|
||||
$structure = new CorpStructure();
|
||||
$structure->character_id = Auth::user()->character_id;
|
||||
$structure->corporation_id = $request->corporation_id;
|
||||
@@ -36,7 +38,7 @@ class RegisterStructureController extends Controller
|
||||
$structure->region = $request->region;
|
||||
$structure->system = $request->system;
|
||||
$structure->structure_name = $request->structure_name;
|
||||
$structure->tax = $request->tax;
|
||||
$structure->tax = $tax;
|
||||
$structure->structure_type = $request->structure_type;
|
||||
$structure->save();
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
{{ Form::label('structure_name', 'Structure Name') }}
|
||||
{{ Form::text('structure_name', '', ['class' => 'form-control']) }}
|
||||
{{ Form::label('tax', 'Tax') }}
|
||||
{{ Form::number('tax', '', ['class' => 'form-control']) }}
|
||||
{{ Form::text('tax', '', ['class' => 'form-control']) }}
|
||||
{{ Form::label('structure_type', 'Structure Type') }}
|
||||
{{ Form::select('structure_type', ['Refinery' => 'Refinery', 'Citadel' => 'Citadel'], null, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user