new table form html, css
This commit is contained in:
@@ -6,16 +6,6 @@ use Illuminate\Http\Request;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the application dashboard.
|
||||
*
|
||||
|
||||
@@ -14,9 +14,9 @@ class TableController extends Controller
|
||||
public function create()
|
||||
{
|
||||
$exampleColSpec =
|
||||
"string, latin, Latin Name\n".
|
||||
"string, common, Common Name\n".
|
||||
"int, lifespan, Lifespan";
|
||||
"latin, string, Latin Name\n".
|
||||
"common, string, Common Name\n".
|
||||
"lifespan, int, Lifespan (years)";
|
||||
|
||||
$exampleData =
|
||||
"Mercenaria mercenaria, hard clam, 40\n" .
|
||||
@@ -27,4 +27,18 @@ class TableController extends Controller
|
||||
compact('exampleColSpec', 'exampleData')
|
||||
);
|
||||
}
|
||||
|
||||
public function storeNew(Request $request)
|
||||
{
|
||||
$this->validate($request, [
|
||||
'table-name' => 'required',
|
||||
'table-descr' => 'string|nullable',
|
||||
'license' => 'string|nullable',
|
||||
'upstream' => 'string|nullable',
|
||||
'col-spec' => 'required',
|
||||
'row-data' => 'string|nullable',
|
||||
]);
|
||||
|
||||
return "Ok.";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user