My case like this :

My view blade laravel like this :

```
{!! Form::open(['route' => 'shop.payment']) !!}
    <input type="hidden" name="result_type">
    <input type="hidden" name="result_data"">
    ...
    <input type="radio" name="payment_method" value="transfer">
    ....
    <checkout-view></checkout-view>
{!! Form::close() !!}

```

In view blade laravel exist vue component of checkout view

The component like this : 

```
<script>
    export default{
        template:'<button @click="checkout" class="btn btn-danger pull-right" type="submit">Checkout</button>',
        methods: {
            checkout(e){
                if(window.Laravel.hasOwnProperty('auth')) {
                    $('#payment-form').attr('action', '/shop/payment/checkout')
                    return true;
                }
                else {
                    $('#payment-form').attr('action', '/shop/detail')
                    $("#payment-form").attr('method', 'get')
                    return true
                }
            }
        },
    }
</script>

```

My routes laravel like this :

```
Route::group(['prefix' => 'shop','as'=>'shop.'], function () {
    Route::get('detail', function(){
        return view('shop.detail');
    });
});

```

If no auth it will run `else` and the url like this :

<http://myshop.dev/shop/detail?_token=FLFJ7MfWi1DZv88Uzk2lrBgVXLN6Y3WHTpskDIED&result_type=&result_data=&payment_method=transfer>

I want remove the parameter, so the url like this : 

<http://myshop.dev/shop/detail>

I try change to `post`

I change to be like this :

```
$('#payment-form').attr('action', '/shop/detail')
$("#payment-form").attr('method', 'post')
return true

```

And 

```
Route::post('detail', function(){
    return view('shop.detail');
});

```

But it does not work, there exist error : 

> 
> POST <http://myshop.dev/shop/detail> 405 (Method Not Allowed)
> 
> 
> 

What is the right solution to solve my problem?