Sunday 9 October 2016

Yii Grid View Custom Action Link

             [
        'class' => 'yii\grid\ActionColumn',
        'template' => '{view} {update} {delete}',
        'buttons' => [
                'view' => function ($url,$model) {
                        return Html::a(
                                '<span class="btn btn-success btn-rounded btn-xs">View</span>',
                                $url);
                },
                'update' => function ($url,$model,$key) {
                                return Html::a('<span class="btn btn-primary btn-rounded btn-xs">Edit</span>', $url);
                },
                          'delete' => function ($url,$model,$key) {
                                return Html::a('<span class="btn btn-danger btn-rounded btn-xs">Delete</span>', $url, [ 'data' => [
                'confirm' => "Are you sure you want to delete profile?",
                'method' => 'post',
            ],]);
                },
        ],
],

Setup VueJS in Laravel

Setup VueJS in Laravel 1. You will need to install javascript dependencies by running the following command on your terminal.      npm i...