Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Dung Diego
/
ocr-tool
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dung Diego
2026-07-16 16:22:13 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
6b1e28e5a51a29a2ed3d1a8f452a44a0906ef2b1
6b1e28e5
1 parent
eff5f308
up
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
app/Http/Controllers/OcrController.php
app/Models/MstField.php
resources/views/dashboard.blade.php
app/Http/Controllers/OcrController.php
View file @
6b1e28e
<?php
namespace
App\Http\Controllers
;
use
App\Models\MstField
;
use
Illuminate\Http\Request
;
use
Carbon\Carbon
;
use
Exception
;
...
...
@@ -10,7 +12,7 @@
class
OcrController
extends
Controller
{
public
function
index
(
Request
$request
){
return
view
(
'dashboard'
,[
'ocr'
=>
[]]);
return
view
(
'dashboard'
,[
'ocr'
=>
[]
,
'mst_field'
=>
MstField
::
get
()
]);
}
public
function
show_pdf
(
Request
$request
)
{
...
...
app/Models/MstField.php
0 → 100644
View file @
6b1e28e
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Model
;
class
MstField
extends
Model
{
protected
$table
=
'mst_field'
;
protected
$guarded
=
[];
public
$timestamps
=
false
;
}
resources/views/dashboard.blade.php
View file @
6b1e28e
...
...
@@ -90,7 +90,8 @@
isLoading
:
false
,
ocr
:
{
!!
json_encode
(
$ocr
)
!!
},
ocr_window
:
null
,
order
:{},
table
:[]
order
:{},
table
:[],
mst_field
:{
!!
json_encode
(
$mst_field
)
!!
},
},
mounted
()
{
},
...
...
Please
register
or
sign in
to post a comment