system/Database/DatabaseManager.php
/**
     * Restore deleted resources
     * 
     * If called dirrectly on DB::table(), the method will attempt to restore all deleted resources on a table
     *
     * Only works on tables with soft deletes enabled
     * @return bool True on success, False on failure
     */
Restore deleted resources

If called dirrectly on DB::table(), the method will attempt to restore all deleted resources on a table

Only works on tables with soft deletes enabled
@return bool True on success, False on failure
Restore deleted resources If called dirrectly on DB :: table () the method will attempt to restore all deleted resources on a table Only works on tables with soft deletes enabled @return bool True on success False on failure
public function restore()
    {
        if(!$this->isSoftDeletes())
        {
            throw new Exception("The current table({$this->tableName}) does not have soft deleted enabled.
            Please enable soft deletes in order to use this method.");
        }
        $data = [
            'deleted_at' => NULL
        ];
        if(empty($this->queryData))
        {
           $this->prepareRestore();
           $rows = $this->executeStatement($this->query);
           session(['affectedRows' => $rows]);
           return $rows > 0;
        }
        return $this->update($data);
    }
public function restore ( ) { if ( ! $ this -> isSoftDeletes ( ) ) { throw new Exception ( " The current table( { $ this -> tableName } ) does not have soft deleted enabled.
            Please enable soft deletes in order to use this method. " ) ; } $ data = [ 'deleted_at' => NULL ] ; if ( empty ( $ this -> queryData ) ) { $ this -> prepareRestore ( ) ; $ rows = $ this -> executeStatement ( $ this -> query ) ; session ( [ 'affectedRows' => $ rows ] ) ; return $ rows > 0 ; } return $ this -> update ( $ data ) ; }
Restore deleted resources
Restore deleted resources