Fixed menuplan create
This commit is contained in:
parent
45a7302640
commit
c732d8eec0
|
@ -44,10 +44,7 @@ class MenuPlanController extends Controller
|
||||||
"monday" => "required|max:255",
|
"monday" => "required|max:255",
|
||||||
"tuesday" => "required|max:255",
|
"tuesday" => "required|max:255",
|
||||||
"wednesday" => "required|max:255",
|
"wednesday" => "required|max:255",
|
||||||
"thursday" => "required|max:255",
|
"thursday" => "required|max:255"
|
||||||
"friday" => "required|max:255",
|
|
||||||
"saturday" => "required|max:255",
|
|
||||||
"sunday" => "required|max:255"
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$menuPlans = new MenuPlan($requestMenuPlanCreate);
|
$menuPlans = new MenuPlan($requestMenuPlanCreate);
|
||||||
|
|
|
@ -19,9 +19,6 @@ class CreateMenuPlans extends Migration
|
||||||
$table->string('tuesday', 255);
|
$table->string('tuesday', 255);
|
||||||
$table->string('wednesday', 255);
|
$table->string('wednesday', 255);
|
||||||
$table->string('thursday', 255);
|
$table->string('thursday', 255);
|
||||||
$table->string('friday', 255);
|
|
||||||
$table->string('saturday', 255);
|
|
||||||
$table->string('sunday', 255);
|
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
//$table->text('description');
|
//$table->text('description');
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Vaskemaskiner - Opret
|
Menuplan - Opret
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="{{ route('menu-plans.create') }}" class="text-white">Opret Vaskemaskiner</a> /
|
<a href="{{ route('menu-plans.create') }}" class="text-white">Opret Menuplan</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
Vaskemaskinen blev (ikke) oprettet.
|
Menuplanen blev (ikke) oprettet.
|
||||||
@endsection
|
@endsection
|
||||||
|
|
Loading…
Reference in New Issue