Loading app/Http/Controllers/DivingSignUpController.php +3 −2 Changes for app/Http/Controllers/DivingSignUpController.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ public function show(){ $userid = session()->get('userid'); if(!preg_match('/[0-9]+/', $userid)) return DivingSignUpController::error(); return view('diving-sign-up'); $divesList = new DivesList(); return $divesList->index(); } public function index($ds_code){ Loading @@ -24,6 +25,6 @@ public function index($ds_code){ } public static function error(){ return view('diving-sign-up')->withErrors(['userid' => 'Error with userid']); return view('dives')->withErrors(['userid' => 'Error with userid']); } } app/Models/Boat.php +14 Changes for app/Models/Boat.php: 14 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Boat extends Model { use HasFactory; protected $table = 'CAR_BOAT'; protected $primaryKey = 'BO_ID'; } app/Models/DivingLocation.php +15 Changes for app/Models/DivingLocation.php: 15 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class DivingLocation extends Model { use HasFactory; protected $table = 'CAR_DIVING_LOCATION'; protected $primaryKey = 'DL_ID'; } app/Models/DivingSession.php +1 −1 Changes for app/Models/DivingSession.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ */ class DivingSession extends Model { protected $table = 'car_diving_session'; protected $table = 'CAR_DIVING_SESSION'; protected $primaryKey = 'ds_code'; protected $keyType = 'string'; public $timestamps = false; Loading resources/img/diving with animals-amico.svg +1 File added.Preview size limit exceeded, changes collapsed. Show changes Loading
app/Http/Controllers/DivingSignUpController.php +3 −2 Changes for app/Http/Controllers/DivingSignUpController.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ public function show(){ $userid = session()->get('userid'); if(!preg_match('/[0-9]+/', $userid)) return DivingSignUpController::error(); return view('diving-sign-up'); $divesList = new DivesList(); return $divesList->index(); } public function index($ds_code){ Loading @@ -24,6 +25,6 @@ public function index($ds_code){ } public static function error(){ return view('diving-sign-up')->withErrors(['userid' => 'Error with userid']); return view('dives')->withErrors(['userid' => 'Error with userid']); } }
app/Models/Boat.php +14 Changes for app/Models/Boat.php: 14 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Boat extends Model { use HasFactory; protected $table = 'CAR_BOAT'; protected $primaryKey = 'BO_ID'; }
app/Models/DivingLocation.php +15 Changes for app/Models/DivingLocation.php: 15 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class DivingLocation extends Model { use HasFactory; protected $table = 'CAR_DIVING_LOCATION'; protected $primaryKey = 'DL_ID'; }
app/Models/DivingSession.php +1 −1 Changes for app/Models/DivingSession.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ */ class DivingSession extends Model { protected $table = 'car_diving_session'; protected $table = 'CAR_DIVING_SESSION'; protected $primaryKey = 'ds_code'; protected $keyType = 'string'; public $timestamps = false; Loading
resources/img/diving with animals-amico.svg +1 File added.Preview size limit exceeded, changes collapsed. Show changes