Loading app/Http/Controllers/DiveSessionCreation.php 0 → 100644 +30 −0 Original line number Diff line number Diff line <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\DivingSession; class DiveSessionCreation extends Controller { /** * Add */ public static function add($request) { $dv = new DivingSession(); $dv->DS_CODE = 'DS'.sizeof(DivingSession::all())+1; $dv->US_ID = $request->pilot; $dv->DL_ID = $request->location; $dv->BO_ID = $request->boat; $dv->US_ID_CAR_SECURE = $request->security; $dv->US_ID_CAR_DIRECT = $request->manager; $dv->DS_DATE = $request->day; $dv->DS_MAX_DEPTH = $request->maxDepth; $dv->DS_ACTIVE = 1; $dv->DS_MAX_DIVERS = $request->max; $dv->DS_LEVEL = $request->level; $dv->save(); } } app/Models/DivingLocation.php +1 −0 Original line number Diff line number Diff line Loading @@ -12,4 +12,5 @@ class DivingLocation extends Model protected $table = 'CAR_DIVING_LOCATION'; protected $primaryKey = 'DL_ID'; } app/Models/Prerogative.php 0 → 100644 +16 −0 Original line number Diff line number Diff line <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Prerogative extends Model { use HasFactory; protected $table = 'CAR_PREROGATIVE'; protected $primaryKey = 'PRE_CODE'; protected $keyType = 'string'; } app/Models/Role.php +2 −0 Original line number Diff line number Diff line Loading @@ -12,5 +12,7 @@ class Role extends Model protected $table = 'CAR_ROLE'; protected $primaryKey = 'ROL_CODE'; protected $keyType = 'string'; } resources/img/diving with animals-amico.svg→public/images/test.svg100644 → 100755 +0 −0 File moved.File mode changed from 100644 to 100755. View file Loading
app/Http/Controllers/DiveSessionCreation.php 0 → 100644 +30 −0 Original line number Diff line number Diff line <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\DivingSession; class DiveSessionCreation extends Controller { /** * Add */ public static function add($request) { $dv = new DivingSession(); $dv->DS_CODE = 'DS'.sizeof(DivingSession::all())+1; $dv->US_ID = $request->pilot; $dv->DL_ID = $request->location; $dv->BO_ID = $request->boat; $dv->US_ID_CAR_SECURE = $request->security; $dv->US_ID_CAR_DIRECT = $request->manager; $dv->DS_DATE = $request->day; $dv->DS_MAX_DEPTH = $request->maxDepth; $dv->DS_ACTIVE = 1; $dv->DS_MAX_DIVERS = $request->max; $dv->DS_LEVEL = $request->level; $dv->save(); } }
app/Models/DivingLocation.php +1 −0 Original line number Diff line number Diff line Loading @@ -12,4 +12,5 @@ class DivingLocation extends Model protected $table = 'CAR_DIVING_LOCATION'; protected $primaryKey = 'DL_ID'; }
app/Models/Prerogative.php 0 → 100644 +16 −0 Original line number Diff line number Diff line <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Prerogative extends Model { use HasFactory; protected $table = 'CAR_PREROGATIVE'; protected $primaryKey = 'PRE_CODE'; protected $keyType = 'string'; }
app/Models/Role.php +2 −0 Original line number Diff line number Diff line Loading @@ -12,5 +12,7 @@ class Role extends Model protected $table = 'CAR_ROLE'; protected $primaryKey = 'ROL_CODE'; protected $keyType = 'string'; }
resources/img/diving with animals-amico.svg→public/images/test.svg100644 → 100755 +0 −0 File moved.File mode changed from 100644 to 100755. View file