Form

{!! Form::open(['method' => 'delete', 'route' => ['bbs.admin.destroy', $board->id],'style'=>'display:inline']) !!}
{!! Form::close() !!}

button

{{ Form::button('Hit Me', array('class' => 'btn')) }}

submit

button{!! Form::submit('delete', ['class' => 'btn btn-danger btn-xs', ]) !!}

input type="number"

{!! Form::number('lists', value, [ 'class' => 'form-control', 'id' => 'lists', ]) !!}

input type="text"

{!! Form::text('lists', isset($cfg) ? $cfg->lists : old('lists'), [ 'class' => 'form-control', 'id' => 'lists', 'placeholder' => '',]) !!}

link

{!! Html::link(route('bbs.index', [$board->table_name, 'urlParams='.$urlParams->enc]), 'view', array('class' => 'btn btn-default btn-xs')) !!}

hidden

{{ Form::hidden('invisible', 'secret') }}

Ajax 를 이용하여 데이타 처리하기

<script>
$(function(){
    $(".btn-delete").click(function(){
        $this = $(this).parents(".data-row");
        var board_id = $this.attr("user-attr-board-id");

        if(confirm('삭제하시겠습니까?')){
            $.ajax({
                url: '/bbs/admin/'+board_id+'/delete',
                type: 'DELETE',
                data:{
                '_token': $('input[name=_token]').val(),
                    },
                success: function(result) {
                    // Do something with the result
                    $this.remove();
                }
            });
        }
    })
})
</script>

blade 에서 링크걸기

<a href="javascript:popView('{{ route('admin.calculate.users', ['siteKey='.$siteKey.'edate='.$request->edate]) }}')">
<a href="{{ route('admin.calculate.users', ['siteKey='.$siteKey.'edate='.$request->edate]) }}">
평점을 남겨주세요
평점 : 5.0
총 투표수 : 1