Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA2-1617-D3TK05
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ropelita esterlina sihombing
PA2-1617-D3TK05
Commits
fc549bae
Commit
fc549bae
authored
May 15, 2017
by
ropelita esterlina sihombing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memperbaiki tampilan dan menghubungkan dengan database
parent
04ebd427
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
9 deletions
+11
-9
workspace.xml
.idea/workspace.xml
+0
-0
2017_05_08_085711_create_pegawai_table.php
...ase/migrations/2017_05_08_085711_create_pegawai_table.php
+3
-3
_form.blade.php
resources/views/books/_form.blade.php
+5
-4
ultra_perpus.sql
ultra_perpus.sql
+1
-0
autoload_classmap.php
vendor/composer/autoload_classmap.php
+1
-1
autoload_static.php
vendor/composer/autoload_static.php
+1
-1
No files found.
.idea/workspace.xml
View file @
fc549bae
This diff is collapsed.
Click to expand it.
database/migrations/2017_05_08_085711_create_
data
pegawai_table.php
→
database/migrations/2017_05_08_085711_create_pegawai_table.php
View file @
fc549bae
...
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
...
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Migrations\Migration
;
class
Create
Data
pegawaiTable
extends
Migration
class
CreatepegawaiTable
extends
Migration
{
{
/**
/**
* Run the migrations.
* Run the migrations.
...
@@ -13,7 +13,7 @@ class CreateDatapegawaiTable extends Migration
...
@@ -13,7 +13,7 @@ class CreateDatapegawaiTable extends Migration
*/
*/
public
function
up
()
public
function
up
()
{
{
Schema
::
create
(
'
data
pegawai'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'pegawai'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'id'
);
$table
->
increments
(
'id'
);
$table
->
string
(
'name'
);
$table
->
string
(
'name'
);
$table
->
string
(
'alamat'
);
$table
->
string
(
'alamat'
);
...
@@ -30,6 +30,6 @@ class CreateDatapegawaiTable extends Migration
...
@@ -30,6 +30,6 @@ class CreateDatapegawaiTable extends Migration
*/
*/
public
function
down
()
public
function
down
()
{
{
Schema
::
drop
(
'
data
pegawai'
);
Schema
::
drop
(
'pegawai'
);
}
}
}
}
resources/views/books/_form.blade.php
View file @
fc549bae
...
@@ -17,13 +17,14 @@
...
@@ -17,13 +17,14 @@
</div>
</div>
</div>
</div>
<div
class=
"form-group
{!! $errors->has('harga') ? 'has-error' : '' !!
}"
>
<div
class=
"form-group
{{ $errors->has('harga') ? ' has-error' : '' }
}"
>
{!! Form::label('harga', 'Harga', ['class'=>'col-md-2 control-label']) !!}
{!! Form::label('harga', 'Harga', ['class'=>'col-md-2 control-label']) !!}
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
{!! Form::select('harga', [''=>'']+App\Author::pluck('name','id')->all(), null, [
{!! Form::number('harga', null, ['class'=>'form-control', 'min'=>1]) !!}
'class'=>'js-selectize',
'placeholder' => 'harga']) !!}
{!! $errors->first('harga', '
<p
class=
"help-block"
>
:message
</p>
') !!}
{!! $errors->first('harga', '
<p
class=
"help-block"
>
:message
</p>
') !!}
@if (isset($book))
<p
class=
"help-block"
>
{{ $book->borrowed }} harga telah masuk
</p>
@endif
</div>
</div>
</div>
</div>
...
...
ultra_perpus.sql
View file @
fc549bae
...
@@ -54,6 +54,7 @@ CREATE TABLE IF NOT EXISTS `books` (
...
@@ -54,6 +54,7 @@ CREATE TABLE IF NOT EXISTS `books` (
`title`
varchar
(
255
)
COLLATE
utf8_unicode_ci
NOT
NULL
,
`title`
varchar
(
255
)
COLLATE
utf8_unicode_ci
NOT
NULL
,
`author_id`
int
(
10
)
unsigned
NOT
NULL
,
`author_id`
int
(
10
)
unsigned
NOT
NULL
,
`amount`
int
(
10
)
unsigned
NOT
NULL
,
`amount`
int
(
10
)
unsigned
NOT
NULL
,
`harga`
varchar
(
20
)
unsigned
NOT
NULL
,
`cover`
varchar
(
255
)
COLLATE
utf8_unicode_ci
DEFAULT
NULL
,
`cover`
varchar
(
255
)
COLLATE
utf8_unicode_ci
DEFAULT
NULL
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
`updated_at`
timestamp
NULL
DEFAULT
NULL
...
...
vendor/composer/autoload_classmap.php
View file @
fc549bae
...
@@ -11,7 +11,7 @@ return array(
...
@@ -11,7 +11,7 @@ return array(
'CreateAuthorsTable'
=>
$baseDir
.
'/database/migrations/2016_12_12_114448_create_authors_table.php'
,
'CreateAuthorsTable'
=>
$baseDir
.
'/database/migrations/2016_12_12_114448_create_authors_table.php'
,
'CreateBooksTable'
=>
$baseDir
.
'/database/migrations/2016_12_12_120408_create_books_table.php'
,
'CreateBooksTable'
=>
$baseDir
.
'/database/migrations/2016_12_12_120408_create_books_table.php'
,
'CreateBorrowLogsTable'
=>
$baseDir
.
'/database/migrations/2016_12_30_094623_create_borrow_logs_table.php'
,
'CreateBorrowLogsTable'
=>
$baseDir
.
'/database/migrations/2016_12_30_094623_create_borrow_logs_table.php'
,
'CreateDatapegawaiTable'
=>
$baseDir
.
'/database/migrations/2017_05_08_085711_create_
data
pegawai_table.php'
,
'CreateDatapegawaiTable'
=>
$baseDir
.
'/database/migrations/2017_05_08_085711_create_pegawai_table.php'
,
'CreatePasswordResetsTable'
=>
$baseDir
.
'/database/migrations/2014_10_12_100000_create_password_resets_table.php'
,
'CreatePasswordResetsTable'
=>
$baseDir
.
'/database/migrations/2014_10_12_100000_create_password_resets_table.php'
,
'CreatePostsTable'
=>
$baseDir
.
'/database/migrations/2016_12_11_110857_create_posts_table.php'
,
'CreatePostsTable'
=>
$baseDir
.
'/database/migrations/2016_12_11_110857_create_posts_table.php'
,
'CreateUsersTable'
=>
$baseDir
.
'/database/migrations/2014_10_12_000000_create_users_table.php'
,
'CreateUsersTable'
=>
$baseDir
.
'/database/migrations/2014_10_12_000000_create_users_table.php'
,
...
...
vendor/composer/autoload_static.php
View file @
fc549bae
...
@@ -355,7 +355,7 @@ class ComposerStaticInit6daa598fae9ed14b9ff672201755e79c
...
@@ -355,7 +355,7 @@ class ComposerStaticInit6daa598fae9ed14b9ff672201755e79c
'CreateAuthorsTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2016_12_12_114448_create_authors_table.php'
,
'CreateAuthorsTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2016_12_12_114448_create_authors_table.php'
,
'CreateBooksTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2016_12_12_120408_create_books_table.php'
,
'CreateBooksTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2016_12_12_120408_create_books_table.php'
,
'CreateBorrowLogsTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2016_12_30_094623_create_borrow_logs_table.php'
,
'CreateBorrowLogsTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2016_12_30_094623_create_borrow_logs_table.php'
,
'CreateDatapegawaiTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2017_05_08_085711_create_datapegawai_table.php'
,
'CreateDatapegawaiTable'
=>
__DIR__
.
'/../..'
,
'CreatePasswordResetsTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2014_10_12_100000_create_password_resets_table.php'
,
'CreatePasswordResetsTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2014_10_12_100000_create_password_resets_table.php'
,
'CreatePostsTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2016_12_11_110857_create_posts_table.php'
,
'CreatePostsTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2016_12_11_110857_create_posts_table.php'
,
'CreateUsersTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2014_10_12_000000_create_users_table.php'
,
'CreateUsersTable'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2014_10_12_000000_create_users_table.php'
,
...
...
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