Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sibiling
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syaifur
sibiling
Commits
7937df57
Commit
7937df57
authored
Sep 06, 2024
by
FARDA ALAN MA'RUF
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/import-dapodik
parents
704d1f4d
2789c35f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
355 additions
and
0 deletions
+355
-0
ImportDapodikController.php
...Http/Controllers/Admin/Import/ImportDapodikController.php
+297
-0
DapodikGuruModel.php
app/Models/Import/DapodikGuruModel.php
+20
-0
DapodikSiswaModel.php
app/Models/Import/DapodikSiswaModel.php
+20
-0
database.php
config/database.php
+15
-0
web.php
routes/web.php
+3
-0
No files found.
app/Http/Controllers/Admin/Import/ImportDapodikController.php
0 → 100644
View file @
7937df57
This diff is collapsed.
Click to expand it.
app/Models/Import/DapodikGuruModel.php
0 → 100644
View file @
7937df57
<?php
namespace
App\Models\Import
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\Model
;
// Library
use
DB
;
// use Illuminate\Database\Eloquent\SoftDeletes;
class
DapodikGuruModel
extends
Model
{
// use HasFactory, SoftDeletes;
use
HasFactory
;
protected
$connection
=
'bkpeduli_datatemp'
;
protected
$table
=
'data_guru'
;
}
app/Models/Import/DapodikSiswaModel.php
0 → 100644
View file @
7937df57
<?php
namespace
App\Models\Import
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\Model
;
// Library
use
DB
;
// use Illuminate\Database\Eloquent\SoftDeletes;
class
DapodikSiswaModel
extends
Model
{
// use HasFactory, SoftDeletes;
use
HasFactory
;
protected
$connection
=
'bkpeduli_datatemp'
;
protected
$table
=
'data_peserta_didik'
;
}
\ No newline at end of file
config/database.php
View file @
7937df57
...
@@ -35,6 +35,21 @@ return [
...
@@ -35,6 +35,21 @@ return [
'connections'
=>
[
'connections'
=>
[
'bkpeduli_datatemp'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST_TEMP'
,
'127.0.0.1'
),
'port'
=>
env
(
'DB_PORT_TEMP'
,
'3306'
),
'database'
=>
env
(
'DB_DATABASE_TEMP'
,
'bkpeduli_datatemp'
),
'username'
=>
env
(
'DB_USERNAME_TEMP'
,
'root'
),
'password'
=>
env
(
'DB_PASSWORD_TEMP'
,
''
),
'unix_socket'
=>
env
(
'DB_SOCKET_TEMP'
,
''
),
'charset'
=>
'utf8mb4'
,
'collation'
=>
'utf8mb4_unicode_ci'
,
'prefix'
=>
''
,
'strict'
=>
true
,
'engine'
=>
null
,
],
'sqlite'
=>
[
'sqlite'
=>
[
'driver'
=>
'sqlite'
,
'driver'
=>
'sqlite'
,
'url'
=>
env
(
'DATABASE_URL'
),
'url'
=>
env
(
'DATABASE_URL'
),
...
...
routes/web.php
View file @
7937df57
...
@@ -31,6 +31,9 @@ Route::get('admin/dashboard', 'Admin\DashboardController@index')->name('dashboar
...
@@ -31,6 +31,9 @@ Route::get('admin/dashboard', 'Admin\DashboardController@index')->name('dashboar
Route
::
middleware
([
'login:1,2'
])
->
group
(
function
()
{
Route
::
middleware
([
'login:1,2'
])
->
group
(
function
()
{
Route
::
get
(
'/import-dapodik-guru'
,
'Admin\Import\ImportDapodikController@importDapodikGuru'
);
Route
::
get
(
'/import-dapodik-siswa'
,
'Admin\Import\ImportDapodikController@importDapodikSiswa'
);
Route
::
prefix
(
'admin/master/sekolah'
)
->
group
(
function
()
{
Route
::
prefix
(
'admin/master/sekolah'
)
->
group
(
function
()
{
Route
::
get
(
'/info'
,
'Admin\Perpus\InfoController@index'
)
->
name
(
'info'
);
Route
::
get
(
'/info'
,
'Admin\Perpus\InfoController@index'
)
->
name
(
'info'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment