publish without error
This commit is contained in:
parent
6990469c67
commit
a49ddeac9e
|
@ -249,7 +249,7 @@ class IndexController extends Controller
|
||||||
$file = $uploadedFile['file'];
|
$file = $uploadedFile['file'];
|
||||||
$label = urldecode($uploadedFile['label']);
|
$label = urldecode($uploadedFile['label']);
|
||||||
$sorting = $uploadedFile['sorting'];
|
$sorting = $uploadedFile['sorting'];
|
||||||
$fileName = "productImage-" . time() . '.' . $file->getClientOriginalExtension();
|
$fileName = "file-" . time() . '.' . $file->getClientOriginalExtension();
|
||||||
$mimeType = $file->getMimeType();
|
$mimeType = $file->getMimeType();
|
||||||
$datasetFolder = 'files/' . $dataset->id;
|
$datasetFolder = 'files/' . $dataset->id;
|
||||||
$path = $file->storeAs($datasetFolder, $fileName);
|
$path = $file->storeAs($datasetFolder, $fileName);
|
||||||
|
@ -292,8 +292,8 @@ class IndexController extends Controller
|
||||||
$dataset->addMainAbstract($abstract);
|
$dataset->addMainAbstract($abstract);
|
||||||
}
|
}
|
||||||
|
|
||||||
$error = 'Always throw this error';
|
// $error = 'Always throw this error';
|
||||||
throw new \Exception($error);
|
// throw new \Exception($error);
|
||||||
|
|
||||||
// all good//commit everything
|
// all good//commit everything
|
||||||
DB::commit();
|
DB::commit();
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -20,15 +20,15 @@ export default {
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "full_name",
|
name: "full_name",
|
||||||
// sortField: "name"
|
// sortField: "full_name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "email",
|
name: "email",
|
||||||
// sortField: "email"
|
sortField: "email"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "date_of_birth",
|
name: "date_of_birth",
|
||||||
// sortField: "birthdate",
|
sortField: "date_of_birth",
|
||||||
// titleClass: "text-center",
|
// titleClass: "text-center",
|
||||||
// dataClass: "text-center",
|
// dataClass: "text-center",
|
||||||
// callback: "formatDate|DD-MM-YYYY"
|
// callback: "formatDate|DD-MM-YYYY"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user