mercredi 20 février 2019

Define blade Route Laravel

This is my route

Route::view('assets/checkout', 'Admin\AssetsController@getcheckout');

This is where i want to define the route in my index blade

          @can('asset_checkout')
    <a href="" class="btn btn-xs btn-primary">@lang('Checkout')</a>
                                @endcan

this is the function i am calling in the controller

public function getcheckout()
{

    return view('admin.assets.checkout';
}

where am i going wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire