public function edit($table)
    {
        $this->authorize('browse_database');

        if (!SchemaManager::tableExists($table)) {
            return redirect()
                ->route('voyager.database.index')
                ->with($this->alertError(__('voyager::database.edit_table_not_exist')));
        }

        $db = $this->prepareDbManager('update', $table);

        return Voyager::view('voyager::tools.database.edit-add', compact('db'));
    }
public function edit($table)
    {
        $this->authorize('browse_database');

        if (!SchemaManager::tableExists($table)) {
            return redirect()
                ->route('voyager.database.index')
                ->with($this->alertError(__('voyager::database.edit_table_not_exist')));
        }

        $db = $this->prepareDbManager('update', $table);

        return Voyager::view('voyager::tools.database.edit-add', compact('db'));
    }
public function edit ( $ table ) { $ this -> authorize ( 'browse_database' ) ; if ( ! SchemaManager :: tableExists ( $ table ) ) { return redirect ( ) -> route ( 'voyager.database.index' ) -> with ( $ this -> alertError ( __ ( 'voyager::database.edit_table_not_exist' ) ) ) ; } $ db = $ this -> prepareDbManager ( 'update' , $ table ) ; return Voyager :: view ( 'voyager::tools.database.edit-add' , compact ( 'db' ) ) ; }
Edit database table.

@param string $table

@return \Illuminate\Http\RedirectResponse
Edit database table .