Commit db815a0e authored by Julien Sailly's avatar Julien Sailly
Browse files
parents c82dc899 f2dd08ba
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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){
@@ -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

0 → 100644
+14 −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 Boat extends Model
{
    use HasFactory;
    protected $table = 'CAR_BOAT';

    protected $primaryKey = 'BO_ID';
}
+15 −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 DivingLocation extends Model
{
    use HasFactory;

    protected $table = 'CAR_DIVING_LOCATION';

    protected $primaryKey = 'DL_ID';
}
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading