芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/DataTables/Admin/BackupsDataTable.php
eloquent($this->query()) ->addColumn('action', function ($backup) { return (Common::has_permission(auth('admin')->user()->id, 'edit_database_backup')) ? '
' : ''; }) ->make(true); } public function query() { $backup = Backup::select('backups.*'); return $this->applyScopes($backup); } public function html() { return $this->builder() ->addColumn(['data' => 'id', 'name' => 'backups.id', 'title' => __('Id'), 'searchable' => false, 'visible' => false]) ->addColumn(['data' => 'name', 'name' => 'backups.name', 'title' => __('Name')]) ->addColumn(['data' => 'created_at', 'name' => 'backups.created_at', 'title' => __('Date')]) ->addColumn(['data' => 'action', 'name' => 'action', 'title' => __('Action'), 'orderable' => false, 'searchable' => false]) ->parameters(dataTableOptions()); } }